Details
-
Suggestion
-
Resolution: Out of scope
-
P2: Important
-
4.3.1
-
None
Description
QSqlError::type() describes the context in which the error occurred, not the type of the error - for example, if a query fails because the connection to the database server closed, the error type will beQSqlError::StatementError, not QSqlError::ConnectionError. It would be useful if there were some way for the SQL drivers to check the database error message and set the QSqlError type correctly.