qt5base-lts/tests/auto/sql
Andy Shaw 28702cb239 Initialize the QSqlQuery to be invalid when creating a sql model
When QSqlQueryModel or QSqlTableModel is created it will create a
QSqlQuery which defaults to using the default QSqlDatabase connection.

If this connection belongs to another thread then it will throw a
warning as this is not safe to use. Since the QSqlQuery is always
recreated when a query is set, the instance which is a member of
the class can effectively be invalid until a new one is set.

Task-number: QTBUG-69213
Change-Id: I68a5dd59fe62788f531d59a0680da11b118ee383
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-08-28 16:10:30 +00:00
..
kernel prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
models Initialize the QSqlQuery to be invalid when creating a sql model 2018-08-28 16:10:30 +00:00
sql.pro Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00