I have uploaded a simple compilable example, as jacek asked.
Renan
I have uploaded it again.
I have uploaded a simple compilable example, as jacek asked.
Renan
I have uploaded it again.
Last edited by GuL; 2nd September 2008 at 15:00. Reason: changing testemysql.cpp
I can't download testemysql2.cpp
I have uploaded it again.
Renan
looks like bug in Qt.
this code works, you can use it
Qt Code:
... ...To copy to clipboard, switch view to plain text mode
GuL (2nd September 2008)
Thanks again spirit.
I will wait one or two days to report these to trolltech. Maybe someone knows why this is happening.
I'm using QT 4.3.4 open source Linux Ubuntu 8.04. I don't if this happens with QT 4.4.1.
Renan
I've tested on Qt 4.4.1, the result is the same.
I've minimized it a bit further (see attachment) and it appears that for Qt 4.4.1 on Linux I get the "No results." message, which means that the database doesn't return any data. Of course it works for * operator.
I've also found a workaround:Qt Code:
query.addBindValue( 4.0 ); query.addBindValue( 2.0 );To copy to clipboard, switch view to plain text mode
Bookmarks