summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2024-07-21 18:56:39 +0200
committerChristian Ehrlicher <[email protected]>2024-07-22 21:08:32 +0200
commit139b8779469244dd1aa226dd3222e6e4aeb2c932 (patch)
tree0a2606672e658056988608670e331ee266d3b08b
parent235bb0926a94a73655a266c0ac038fa3a0a982cd (diff)
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 <[email protected]>
-rw-r--r--src/sql/kernel/qsqldriver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqldriver.cpp b/src/sql/kernel/qsqldriver.cpp
index c0cb0374a98..6b868f5c403 100644
--- a/src/sql/kernel/qsqldriver.cpp
+++ b/src/sql/kernel/qsqldriver.cpp
@@ -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