Skip to content

Commit

Permalink
QSqlDriver/doc: Add a note about features depending on the db server
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chehrlic committed Jul 22, 2024
1 parent 235bb09 commit 139b877
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sql/kernel/qsqldriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ bool QSqlDriver::isOpenError() const
\enum QSqlDriver::DriverFeature
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 QuerySize Whether the database is capable of reporting the size
Expand Down

0 comments on commit 139b877

Please sign in to comment.