[Qt-interest] QSqlQuery::bindValue() not working...

Jason H scorp1us at yahoo.com
Fri Nov 20 06:52:48 CET 2009


I wonder if the ; are messing it up?
the ; are only needed for a parser, or for multiple statements.

Your code look right to me.




----- Original Message ----
From: Hong Jiang <kmldqj at gmail.com>
To: qt-interest <qt-interest at trolltech.com>
Sent: Fri, November 20, 2009 12:27:52 AM
Subject: [Qt-interest] QSqlQuery::bindValue() not working...

Hi,

I cannot seem to get QSqlQuery::bindValue() to work. To figure out
what's wrong, I wrote a small test. The snippet is at:
http://gist.github.com/239305
The output of the test is:
"INSERT INTO testtable (title, url) VALUES (?, ?);"
The two bindValue() calls didn't seem to do anything.

Could anyone give me some pointers? Thanks!

--Hong
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      




More information about the Qt-interest-old mailing list