summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel
diff options
context:
space:
mode:
authorMichael Goddard <michael.goddard@nokia.com>2010-11-04 05:47:51 (GMT)
committerMichael Goddard <michael.goddard@nokia.com>2011-02-04 05:41:02 (GMT)
commitd300e8208928084b62bbde01fb81bd66bc967bc8 (patch)
tree42114e68ad6c4ab6fb94c58a6b4fdf07a34c7831 /src/sql/kernel
parent741a5114c2c6bf4d89068d861db90c456cce371b (diff)
downloadQt-d300e8208928084b62bbde01fb81bd66bc967bc8.zip
Qt-d300e8208928084b62bbde01fb81bd66bc967bc8.tar.gz
Qt-d300e8208928084b62bbde01fb81bd66bc967bc8.tar.bz2
Try to document that invalid database arguments use the default database.
Some places documented this, some didn't. Change-Id: Id66678dbcd9af6ec9687db745ba6f5506e951d1d Task-number: QTBUG-3240 Reviewed-by: Charles Yin
Diffstat (limited to 'src/sql/kernel')
-rw-r--r--src/sql/kernel/qsqlquery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp
index 4b92a3e..3cdc8b1 100644
--- a/src/sql/kernel/qsqlquery.cpp
+++ b/src/sql/kernel/qsqlquery.cpp
@@ -272,7 +272,7 @@ static void qInit(QSqlQuery *q, const QString& query, QSqlDatabase db)
/*!
Constructs a QSqlQuery object using the SQL \a query and the
- database \a db. If \a db is not specified, the application's
+ database \a db. If \a db is not specified, or is invalid, the application's
default database is used. If \a query is not an empty string, it
will be executed.
@@ -286,6 +286,7 @@ QSqlQuery::QSqlQuery(const QString& query, QSqlDatabase db)
/*!
Constructs a QSqlQuery object using the database \a db.
+ If \a db is invalid, the application's default database will be used.
\sa QSqlDatabase
*/