PDA

View Full Version : QSqlError::ErrorType



vr
14th October 2008, 11:42
Hi,

i'm just in the test process of an application that uses mysql and i hit upon something strange.
If i stop mysql server before the app. executes a query (the database connection is already up and a few queries were executed) the error message is ok - mysql has gone away, cannot execute query - BUT the query.lastError().type() returns StatementError instead of ConnectionError.

Would someone interpret why?

Env.: qt4.4.1, mysql5.0.51a fedora9


Thanks:
Rudolf