Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
4.7.4, 4.8.0
-
None
-
All
-
cff46983a8823fda13cafa2c8774153525f0d4d1
Description
Bind a named placehouder that appears more than one time.
In some queries (more extensive than the example) that can be helpfull.
Example:
QSqlQuery qry;
qry.prepare("SELECT :param, :param;");
qry.bindValue(":param", 1);
qry.exec();
It's better than...
QSqlQuery qry;
qry.prepare("SELECT :param1, :param2;");
qry.bindValue(":param1", 1);
qry.bindValue(":param2", 1);
qry.exec();
Attachments
For Gerrit Dashboard: QTBUG-23360 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
87628,3 | Updated QSql{Query,Result}::bindValue doc to reflect the current state. | 5.3 | qt/qtbase | Status: MERGED | +2 | 0 |