- 
    
Bug
 - 
    Resolution: Cannot Reproduce
 - 
    
P2: Important
 - 
    None
 - 
    6.2.4
 - 
    None
 - 
    Linux AMD PC
 
Whenever I get a QSqlQuery error the QSqlError text() function returns an empty string and the error code is always 0; eg,
Code snippet example QSql error:
...
QSqlQuery query(*db_conn);
query.prepare("INSERT INTO misc_data SET internat=:internet;"); //typo
query.bindValue(":internet",internet->status());
if(!query.exec())
return 0;
...
Prints:
MySQL (0x7ffe805e5348) error '', code 0
I have found that at Line 208 in file:
qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
static QSqlError qMakeError(const QString& err, QSqlError::ErrorType type,
                            const QMYSQLDriverPrivate* p) ...
Appears to provide the information but does not seem to be called.
What am I doing wrong any suggestion will be great.
Thanks