diff options
author | Andras Mantia <andras@kdab.com> | 2012-07-01 17:11:00 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-03 13:21:23 +0200 |
commit | 8ccab9b029ed2a2444d89a9cfc6c4a1866b8e82d (patch) | |
tree | 9e359c5e77d30a0ca7761f05d91e85b46b954058 /dist | |
parent | f128c1f6d3cbdc1aa13f9ec65fd2354ef91c1c48 (diff) |
Add support for SQLSTATE error codes
Postgres can report detailed information about an error using error codes.
See http://www.postgresql.org/docs/8.1/static/errcodes-appendix.html .
The current driver doesn't report the error, nor is it supported by the
QSqlError object.
The patch appends the error to the error message, helping applications to:
- handle different errors in a specific way
- show correct, translated error messages, independently on the language of the postgres installation
Change-Id: Ica3530ac33d3aaa9985e06f6c1f302ece9891033
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'dist')
-rw-r--r-- | dist/changes-5.0.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index b9fc03066e..1dfbeaa35f 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -567,6 +567,11 @@ sqlite 'true' and 'false'. Sqlite does not have a boolean column type and it is customary to use integer. QTBUG-23895 +postgres +-------- +* the error message returned in QSqlError::text() has the SQLSTATE error code +appended in parantheses. + **************************************************************************** * Platform Specific Changes * **************************************************************************** |