[Qt-interest] Incomprehensible SQL errors

Ruth Morrison dragonflykes at gmail.com
Tue Nov 15 07:12:07 CET 2011


I had a QSqlQuery that was malformed - it had a stray closing parenthesis
on the end.  When it tried to execute at run-time, the call to lastError ()
returned "Parameter count mismatch".  This was not a QSqlQuery that had
been previously used for other queries and then finish()ed.  Running the
same malformed query in the SQLite 3 interpreter produces the correct error
("Error: near ")": syntax error").  Why does lastError () return "Parameter
count mismatch"?   Is that just the default error for when it can't figure
out what went wrong?

EK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111114/c57d92f0/attachment.html 


More information about the Qt-interest-old mailing list