[Qt-interest] QSqlQuery using QMYSQL3 instead of QMYSQL
Christopher Rasch-Olsen Raa
christopher at technophile.info
Sun May 16 14:28:16 CEST 2010
Hi there,
I have an application that is using the QMYSQL-driver. The
database-connection is set up with
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
and my assumption was that that it would then use QMYSQL as driver. It
has worked like a charm up until now. Suddenly, I encountered a
SELECT-query that executed ok, and query.size() reports the correct
number of rows. However, query.next() fails with the error:
'QSqlError(0, "QMYSQL3: Unable to fetch data", "")'
So the question is now; why on earth is the query using the
QMYSQL3-driver? That driver didn't support UNION's right?
Help here would be greatly appreciated.
--
Christopher
More information about the Qt-interest-old
mailing list