From e6857b7ebccc6d7fbd5c77acbd3b0f33132bc068 Mon Sep 17 00:00:00 2001 From: Marcel Krems Date: Tue, 17 Jun 2014 12:40:31 +0200 Subject: Updated QSql{Query,Result}::bindValue doc to reflect the current state. Since 5.0 it is possible to use one call to bindValue to bind values to multiple placeholders with the same name. Task-number: QTBUG-23360 Change-Id: Ic838150d25dd07bca7bc9e5d91ab3362a73833d6 Reviewed-by: Matt Newell Reviewed-by: Mark Brand --- src/sql/kernel/qsqlquery.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/sql/kernel/qsqlquery.cpp') diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index 6b13eb02ed4..b98e2baf1eb 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -1063,12 +1063,6 @@ bool QSqlQuery::execBatch(BatchExecutionMode mode) To bind a NULL value, use a null QVariant; for example, use \c {QVariant(QVariant::String)} if you are binding a string. - Values cannot be bound to multiple locations in the query, eg: - \code - INSERT INTO testtable (id, name, samename) VALUES (:id, :name, :name) - \endcode - Binding to name will bind to the first :name, but not the second. - \sa addBindValue(), prepare(), exec(), boundValue(), boundValues() */ void QSqlQuery::bindValue(const QString& placeholder, const QVariant& val, -- cgit v1.2.3