QSqlDriver/doc: Add a note about features depending on the db server

Some features are server-dependent and therefore an open db connection
is needed to make sure that the feature is available.

Pick-to: 6.8 6.7 6.5
Fixes: QTBUG-10016
Change-Id: Ia9a117a64ba5fe7cdd69bf95a41cfc301ab5fd94
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Christian Ehrlicher 2024-07-21 18:56:39 +02:00
parent 235bb0926a
commit 139b877946

View File

@ -138,7 +138,9 @@ bool QSqlDriver::isOpenError() const
\enum QSqlDriver::DriverFeature \enum QSqlDriver::DriverFeature
This enum contains a list of features a driver might support. Use This enum contains a list of features a driver might support. Use
hasFeature() to query whether a feature is supported or not. hasFeature() to query whether a feature is supported or not. Some features
depend on the database server so they can only properly determined after
the database connection is successfully opened with QSqlDatabase::open().
\value Transactions Whether the driver supports SQL transactions. \value Transactions Whether the driver supports SQL transactions.
\value QuerySize Whether the database is capable of reporting the size \value QuerySize Whether the database is capable of reporting the size