Changeset 769 for trunk/src/sql/kernel/qsqlquery.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 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/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()
Note:
See TracChangeset
for help on using the changeset viewer.