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

Allocation of Strings in bindValues

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes