qt6-bb10/src/sql
Andras Mantia 8ccab9b029 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>
2012-07-03 13:21:23 +02:00
..
doc Fix docs mentioning Q_EXPORT_PLUGIN2 2012-06-25 00:19:26 +02:00
drivers Add support for SQLSTATE error codes 2012-07-03 13:21:23 +02:00
kernel Clean up the EXPORT macros in qglobal.h. 2012-06-29 00:27:18 +02:00
models Use the correct ifdef (QT_WIDGETS_LIB) in qsqlrelationaldelegate.h 2012-06-06 15:29:34 +02:00
README.module Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
sql.pro fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00

README.module

Before building the Qt library, the Qt SQL module can be enabled for
specific databases using 'configure'.  'configure' is located at the
top of your QTDIR.

Specific databases drivers can be enabled using one of the following
options:

	./configure [-qt-sql-<driver>] [-plugin-sql-<driver>]

or disabled using the following option:

	./configure [-no-sql-<driver>]

Where <driver> is the name of the driver, for example 'psql'.  This
will configure the Qt library to compile the specified driver into
the Qt lib itself.

For example, to build the PostgreSQL driver directly into the Qt
library, configure Qt like this:

	./configure -qt-sql-psql

In addition, you may need to specify an extra include path, as some
database drivers require headers for the database they are using,
for example:

	./configure -qt-sql-psql -I/usr/local/include

If instead you need to build the PostgreSQL driver as a dynamically
loaded plugin, configure Qt like this:

	./configure -plugin-sql-psql

To compile drivers as dynamically loaded plugins, see the
QTDIR/plugins/src/sqldrivers directory.  Use 'configure -help'
for a complete list of configure options.  See the Qt documentation
for a complete list of supported database drivers.