From 139b8779469244dd1aa226dd3222e6e4aeb2c932 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sun, 21 Jul 2024 18:56:39 +0200 Subject: [PATCH] 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 --- src/sql/kernel/qsqldriver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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