Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23360

Bind a named placehouder that appears more than one time

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.0.0
    • 4.7.4, 4.8.0
    • SQL Support
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mabrand Mark Brand
            israelins85 Israel Lins Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes