diff options
author | Andras Mantia <andras@kdab.com> | 2013-02-25 16:23:29 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-28 09:03:47 (GMT) |
commit | c4c5e8c595ce7c51094a7eff330b01e3ffbf05c0 (patch) | |
tree | 07fec1793859e1746286da949d3b6cedcd81ed36 /src/corelib/io/qfsfileengine.cpp | |
parent | f391ec72c2e4416bf8e5d7482ace49247cc2017c (diff) | |
download | Qt-c4c5e8c595ce7c51094a7eff330b01e3ffbf05c0.zip Qt-c4c5e8c595ce7c51094a7eff330b01e3ffbf05c0.tar.gz Qt-c4c5e8c595ce7c51094a7eff330b01e3ffbf05c0.tar.bz2 |
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: I5c7792606307afdefaeae37c512949c85c2c7674
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
(cherry picked from commit qtbase/8ccab9b029ed2a2444d89a9cfc6c4a1866b8e82d)
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/corelib/io/qfsfileengine.cpp')
0 files changed, 0 insertions, 0 deletions