summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2013-02-05 08:07:07 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-05 22:14:51 (GMT)
commitc8c403375f92d86995aa114abd674e71ae5bd9b3 (patch)
tree3f0c4d7e9b804934afdc034c80be4d4eb5f85118 /src/sql/kernel
parent86ab834dd8dcd3e85a02c47f58084178227b2f12 (diff)
downloadQt-c8c403375f92d86995aa114abd674e71ae5bd9b3.zip
Qt-c8c403375f92d86995aa114abd674e71ae5bd9b3.tar.gz
Qt-c8c403375f92d86995aa114abd674e71ae5bd9b3.tar.bz2
remove misleading statement from ~QSqlDatabase()
The presence of the sentence "If this is the last QSqlDatabase object that uses a certain database connection, the database connection is automatically closed" is misleading, whether or not the statement is true. It is about an internal detail of QSqlDatabase's implementation. As such it is not appropriate for user documentation. The user should be focused on how to use addDatabase(), cloneDatabase() and removeDatabase() correctly. Task-number: QTBUG-29481 Change-Id: I0c39584be260e13340834c34098368fcce4a7419 Reviewed-by: Florian Paul Schmidt <mista.tapas@gmx.net> Reviewed-by: Sune Vuorela <sune@vuorela.dk> Reviewed-by: Mark Brand <mabrand@mabrand.nl> (cherry picked from qtbase/0b8065b5819efd8ba3741ea5703d5b95954b16c2)
Diffstat (limited to 'src/sql/kernel')
-rw-r--r--src/sql/kernel/qsqldatabase.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp
index 8591278..04056db 100644
--- a/src/sql/kernel/qsqldatabase.cpp
+++ b/src/sql/kernel/qsqldatabase.cpp
@@ -794,9 +794,6 @@ void QSqlDatabasePrivate::init(const QString &type)
/*!
Destroys the object and frees any allocated resources.
- If this is the last QSqlDatabase object that uses a certain
- database connection, the database connection is automatically closed.
-
\sa close()
*/