summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine.cpp
diff options
context:
space:
mode:
authorAndras Mantia <andras@kdab.com>2013-02-25 16:23:29 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-28 09:03:47 (GMT)
commitc4c5e8c595ce7c51094a7eff330b01e3ffbf05c0 (patch)
tree07fec1793859e1746286da949d3b6cedcd81ed36 /src/corelib/io/qfsfileengine.cpp
parentf391ec72c2e4416bf8e5d7482ace49247cc2017c (diff)
downloadQt-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