diff options
author | Bill King <bill.king@nokia.com> | 2010-03-05 03:09:08 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2010-03-05 03:09:08 (GMT) |
commit | 3e6a330d2aa6f139347fe29947721368a5186cc3 (patch) | |
tree | 64da64d7b133667adb13f9555069ffe16b38b429 /src/sql/kernel | |
parent | 57c847ed2c0b4116ea791828c41db5edc40fe2f2 (diff) | |
download | Qt-3e6a330d2aa6f139347fe29947721368a5186cc3.zip Qt-3e6a330d2aa6f139347fe29947721368a5186cc3.tar.gz Qt-3e6a330d2aa6f139347fe29947721368a5186cc3.tar.bz2 |
Update documentation with warning about setForwardOnly
Task-number: QTBUG-8752
Diffstat (limited to 'src/sql/kernel')
-rw-r--r-- | src/sql/kernel/qsqlquery.cpp | 3 | ||||
-rw-r--r-- | src/sql/kernel/qsqlresult.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index 430cf1a..f253c82 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -822,6 +822,9 @@ bool QSqlQuery::isForwardOnly() const scrollable. isForwardOnly() will always return the correct status of the result set. + \note Calling setForwardOnly after execution of the query will result + in unexpected results at best, and crashes at worst. + \sa isForwardOnly(), next(), seek(), QSqlResult::setForwardOnly() */ void QSqlQuery::setForwardOnly(bool forward) diff --git a/src/sql/kernel/qsqlresult.cpp b/src/sql/kernel/qsqlresult.cpp index 0c0c31c..6382b42 100644 --- a/src/sql/kernel/qsqlresult.cpp +++ b/src/sql/kernel/qsqlresult.cpp @@ -564,6 +564,9 @@ bool QSqlResult::isForwardOnly() const scrollable. isForwardOnly() will always return the correct status of the result set. + \note Calling setForwardOnly after execution of the query will result + in unexpected results at best, and crashes at worst. + \sa isForwardOnly(), fetchNext(), QSqlQuery::setForwardOnly() */ void QSqlResult::setForwardOnly(bool forward) |