summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-03-10 22:58:58 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-03-12 16:21:17 +0000
commit3b2c09a13cc83a9b636eefaced674f6000048f2d (patch)
treeb913bf13ba5d804cef100272074d6a7dba04c5d7 /tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp
parent68526277771f232bba0a02383cbacda382cc829d (diff)
SQL/MySQL: fix QSqlDatabase::tables() with MySQL 8.0.x
The (undocumented) struct MYSQL returned by mysql_real_connect() no longer stores the db name in MYSQL.db but something else. This leads to a wrong select statement within QMYSQLDriver::tables(). Therefore store the current database name in QMYSQLDriverPrivate to be able to use it in tables() later on. Pick-to: 6.5 6.2 5.15 Change-Id: I27d3345dd44a0d8642ca120cddc5c151b8bed85d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/sql/models/qsqltablemodel/tst_qsqltablemodel.cpp')
0 files changed, 0 insertions, 0 deletions