qt6-bb10/tests/auto/sql/kernel
Andy Shaw 9b361f0e90 Return an invalid QSqlDatabase when accessing from another thread
QSqlDatabase objects can only be used in the thread that the connection
was opened for. So if the driver was created already then we check if
the thread is correct. If it is not then we output a warning and return
an invalid QSqlDatabase.

[ChangeLog][QtSql][QSqlDatabase] QSqlDatabase::database() will return
an invalid QSqlDatabase if the calling thread does not own the requested
QSqlDatabase.

Task-number: QTBUG-216
Change-Id: Ib5a25aa62129e3925f9819109af05961e5178bc5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-01-02 08:49:40 +00:00
..
qsql tst_qsql.cpp: Remove deprecated module include 2016-11-25 09:55:21 +00:00
qsqldatabase Return an invalid QSqlDatabase when accessing from another thread 2018-01-02 08:49:40 +00:00
qsqldriver OCI: Match the constraints on the index_name column 2017-11-15 06:40:45 +00:00
qsqlerror Add move special member functions to QSqlError 2017-04-28 12:50:34 +00:00
qsqlfield QSqlField: Add a means to see what the tablename is for a given field 2017-07-12 09:01:50 +00:00
qsqlquery Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qsqlrecord QSqlField: Add a means to see what the tablename is for a given field 2017-07-12 09:01:50 +00:00
qsqlresult Updated license headers 2016-01-21 18:55:18 +00:00
qsqlthread Fix invalid placeholder name in tst_qsqlthread.cpp 2017-08-23 12:48:32 +00:00
kernel.pro SQL: Change in QSqlResultPrivate::positionalToNamedBinding() 2012-12-10 21:23:35 +01:00