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

Allocation of Strings in bindValues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.4.2
    • SQL Support
    • None

      Bind a string value to a SQL query and execute this via ODBC.

      SQL:
      SELECT * FROM T_Strassenverzeichnis WHERE ST_Strasse LIKE :name

      C++:
      query.bindValue(":name", "A%");

      Expected to see:
      The query should return all street beginning with A.

      Got instead:
      Nothing. The query would executed but the bind value is invalid. Only strange characters are bound to the bind value.

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

            bilking Bill King
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes