[Qt-interest] QSqlQuery and placeholders of the same name
Anthony Serdyukov
uksus70 at gmail.com
Tue Dec 30 05:58:39 CET 2008
Good day.
Just a simple code.
-------------------------------------
QSqlQuery query;
query.prepare("select * from some_table where columnA = :param AND
columnB = :param");
query.bindValue(":param", someValue);
query.exec();
-------------------------------------
But it doesn't work. The placeholders of the same name are not bound correctly.
First occurrence of :param placeholder gets value of NULL, and the
second occurrence gets proper value.
I have found a task about it.
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=77898
The task is rejected without any explanation.
Could somebody explain this behavior?
--
Regards,
Anthony
More information about the Qt-interest-old
mailing list