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

Add support for preparing queries without parsing the placeholders

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • None
    • SQL Support
    • None

      > Qt parses the sql for bind parameters for sqlite even though sqlite
      > allows binding by name or position. (This may have been fixed in the
      > regexp stuff, I wasn't involved in that conversation)

      Because we support both named and positional binding we need to parse the query to make sure the binding works later.

      We can add a directPrepare/nativePrepare function in QSqlResult that lets the user prepare a query without doing any placeholder checking, but there will most likely be some constraints on how the Qt bind-functions can be used for these queries.

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

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes