qt5base-lts/tests/auto/sql/kernel
Edward Welbourne 78eac57f3d Check for null driver() before trying to exec()
QSqlQuery::exec() took for granted that it can dereference driver(),
which should be true for all sane usage; however, it should not crash
if used misguidedly. Added regression test, based on bug report's
reproducer, which crashes without the fix.

Fixes: QTBUG-100037
Pick-to: 6.3 6.2 5.15 5.12
Change-Id: I94600bc60f89e82a1121b418144006a683921a38
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2022-01-25 16:18:35 +01:00
..
qsql Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqldatabase Sql ODBC driver: add direct support for float and short datatype 2021-01-10 13:02:14 +01:00
qsqldriver Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlerror Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlfield Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlquery Check for null driver() before trying to exec() 2022-01-25 16:18:35 +01:00
qsqlrecord Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlresult Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsqlthread Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00