Changeset 769 for trunk/src/sql/kernel
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/sql/kernel/qsqldatabase.cpp
r651 r769 1268 1268 \i QSQLITE_BUSY_TIMEOUT 1269 1269 \i QSQLITE_OPEN_READONLY 1270 \i QSQLITE_ENABLE_SHARED_CACHE 1270 1271 \endlist 1271 1272 -
trunk/src/sql/kernel/qsqlquery.cpp
r651 r769 823 823 the result set. 824 824 825 \note Calling setForwardOnly after execution of the query will result 826 in unexpected results at best, and crashes at worst. 827 825 828 \sa isForwardOnly(), next(), seek(), QSqlResult::setForwardOnly() 826 829 */ … … 1000 1003 paramType is QSql::Out or QSql::InOut, the placeholder will be 1001 1004 overwritten with data from the database after the exec() call. 1005 In this case, sufficient space must be pre-allocated to store 1006 the result into. 1002 1007 1003 1008 To bind a NULL value, use a null QVariant; for example, use 1004 1009 \c {QVariant(QVariant::String)} if you are binding a string. 1010 1011 Values cannot be bound to multiple locations in the query, eg: 1012 \code 1013 INSERT INTO testtable (id, name, samename) VALUES (:id, :name, :name) 1014 \endcode 1015 Binding to name will bind to the first :name, but not the second. 1005 1016 1006 1017 \sa addBindValue(), prepare(), exec(), boundValue() boundValues() -
trunk/src/sql/kernel/qsqlresult.cpp
r651 r769 137 137 } 138 138 139 return QString ::fromUtf16(arr, int(ptr - arr) + 1);139 return QString(reinterpret_cast<const QChar *>(arr), int(ptr - arr) + 1); 140 140 } 141 141 … … 564 564 scrollable. isForwardOnly() will always return the correct status of 565 565 the result set. 566 567 \note Calling setForwardOnly after execution of the query will result 568 in unexpected results at best, and crashes at worst. 566 569 567 570 \sa isForwardOnly(), fetchNext(), QSqlQuery::setForwardOnly() … … 708 711 placeholder name in the current record (row). 709 712 710 Note that binding an undefined placeholder will result in undefined behavior. 713 Values cannot be bound to multiple locations in the query, eg: 714 \code 715 INSERT INTO testtable (id, name, samename) VALUES (:id, :name, :name) 716 \endcode 717 Binding to name will bind to the first :name, but not the second. 718 719 \note Binding an undefined placeholder will result in undefined behavior. 720 721 \sa QSqlQuery::bindValue() 711 722 */ 712 723 void QSqlResult::bindValue(const QString& placeholder, const QVariant& val,
Note:
See TracChangeset
for help on using the changeset viewer.