qt5base-lts/tests/auto/sql/kernel
Aaron McCarthy 7456562e7f Fix error reporting in TDS SQL driver.
The error and message handlers used by the freetds library were getting
reset to back to the default every time a database was opened.  The
Qt TDS SQL driver was calling dbinit() from QTDSDriver::open().  This
had two problems:

1. dbinit() would reset the error handler previously set by a call to
   dberrhandle().  A db error would then cause the application to
   abort.
2. freetds expects dbinit() and dbexit() to be called symmetrically.
   Opening multiple database connections would result in freetds not
   cleaning up on application close.

Solved by moving the dbinit() call into the QTDSDriver constructor.

Change-Id: I59018d83238672c903b96a4d7f3f21b664c3ff4c
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
2012-11-18 23:13:29 +01:00
..
qsql Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqldatabase Fix error reporting in TDS SQL driver. 2012-11-18 23:13:29 +01:00
qsqldriver Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlerror Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlfield Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlquery fix binding of bool type in mysql driver 2012-11-09 00:37:42 +01:00
qsqlrecord Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsqlthread Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel.pro Fix tst_qsql crashes on Mac OS X 2011-12-02 17:35:11 +01:00