Is C++ OTL SQL database library using parameterized queries under the hood, or string concat?

后端 未结 2 547
忘了有多久
忘了有多久 2021-01-13 12:49

I\'ve been looking at the OTL (Oracle, Odbc and DB2-CLI Template Library) for C++ database access. I\'m unsure of whether the query I pass in is converted to a parameterize

2条回答
  •  隐瞒了意图╮
    2021-01-13 13:18

    The documentation talks all about bind variables. I assume that the library is rewriting your query, but it's probably just changing the format of the bind variables into the format your DBMS expects, and then binding the values to the bind variables.

提交回复
热议问题