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

Add support for preparing queries without parsing the placeholders

    XMLWordPrintable

Details

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

    Description

      > 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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes