summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-12-17 19:54:55 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-12-20 03:46:08 +0100
commit5b07e3de3fe5335d9338c65ca40cfe656a389167 (patch)
treea9d22ede190453d424fa55344dcfb885e549c136 /tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp
parentec3a5f4994a2bafc65fa8e01fb0861219580f622 (diff)
QSqlDriver: return the connection name of the assoicated QSqlDatabase
A QSqlDriver instance is directly bound to a QSqlDatabase object. But there was no way to get the QSqlDatabase out of a QSqlQuery/QSqlDriver. Fix it by storing the connection name also in the driver during creation and add a getter for it. [ChangeLog][QtSql][QSqlDriver] Added connectionName() which returns the connection name of the associated QSqlDatabase instance. Pick-to: 6.9 Task-number: QTBUG-123603 Change-Id: If78b85413cf6ca965ff6bf9f3600cb54169b5569 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/sql/models/qsqlquerymodel/tst_qsqlquerymodel.cpp')
0 files changed, 0 insertions, 0 deletions