Obsolete Members for QSqlError
The following members of class QSqlError are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||number() const|
| ||setDatabaseText(const QString &databaseText)|
| ||setDriverText(const QString &driverText)|
| ||setNumber(int number)|
| ||setType(ErrorType type)|
Member Function Documentation
Returns the database-specific error number, or -1 if it cannot be determined.
Returns 0 if the error code is not an integer.
Warning: Some databases use alphanumeric error codes, which makes number() unreliable if such a database is used.
Use nativeErrorCode() instead
void QSqlError::setDatabaseText(const QString &databaseText)
Sets the database error text to the value of databaseText.
void QSqlError::setDriverText(const QString &driverText)
Sets the driver error text to the value of driverText.
Sets the database-specific error number to number.
See also number().
void QSqlError::setType(ErrorType type)
Sets the error type to the value of type.
See also type().
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.