[Qt-interest] QSqlQuery bindValue sqlite3

Sylvain Pointeau sylvain.pointeau at gmail.com
Tue Jan 11 23:15:02 CET 2011


Hi,

there is a bug when the query contains multiple placeholders like:

"select 1, 2, 4 from MY_TABLE WHERE (:a = '' OR my_field like :a)"
bindValue(":a", "the value");

only the first one seems to be replaced.

If I use the sqlite api, this example is working fine.

is it a bug or a "feature"?

Best regards,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110111/72c70e1f/attachment.html 


More information about the Qt-interest-old mailing list