Changeset 769 for trunk/src/sql/kernel


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:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r651 r769  
    12681268    \i QSQLITE_BUSY_TIMEOUT
    12691269    \i QSQLITE_OPEN_READONLY
     1270    \i QSQLITE_ENABLE_SHARED_CACHE
    12701271    \endlist
    12711272
  • 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()
  • trunk/src/sql/kernel/qsqlresult.cpp

    r651 r769  
    137137    }
    138138
    139     return QString::fromUtf16(arr, int(ptr - arr) + 1);
     139    return QString(reinterpret_cast<const QChar *>(arr), int(ptr - arr) + 1);
    140140}
    141141
     
    564564    scrollable. isForwardOnly() will always return the correct status of
    565565    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.
    566569
    567570    \sa isForwardOnly(), fetchNext(), QSqlQuery::setForwardOnly()
     
    708711    placeholder name in the current record (row).
    709712
    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()
    711722*/
    712723void QSqlResult::bindValue(const QString& placeholder, const QVariant& val,
Note: See TracChangeset for help on using the changeset viewer.