Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/sql/kernel/qsqlquery.cpp

    r651 r769  
    823823  the result set.
    824824
     825  \note Calling setForwardOnly after execution of the query will result
     826  in unexpected results at best, and crashes at worst.
     827
    825828  \sa isForwardOnly(), next(), seek(), QSqlResult::setForwardOnly()
    826829*/
     
    10001003  paramType is QSql::Out or QSql::InOut, the placeholder will be
    10011004  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.
    10021007
    10031008  To bind a NULL value, use a null QVariant; for example, use
    10041009  \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.
    10051016
    10061017  \sa addBindValue(), prepare(), exec(), boundValue() boundValues()
Note: See TracChangeset for help on using the changeset viewer.