Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.13.0
-
None
Description
In my project with MySQL database, I am not getting results with this code:
QSqlQuery q; q.prepare("SELECT id, ? AS type FROM table"); q.bind(0, 0); q.exec(); qDebug() << q.size(); // Returns correct number of rows while(q.next()) {} // Does not correctly iterate through results
When I instead of binding place the number directly in the SQL code, it works correctly.