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

QSqlQuery::executedQuery() does not fill in bound values

XMLWordPrintable

      The docs say:

      In most cases this function returns the same string as lastQuery(). If a prepared query with placeholders is executed on a DBMS that does not support it, the preparation of this query is emulated. The placeholders in the original query are replaced with their bound values to form a new query. This function returns the modified query. It is mostly useful for debugging purposes.

      Since it says that preparation is emulated on platforms that don't support it, I interpret it as implied that preparation is actually done on other platforms. Regardless the output of the method contains select ... where variable = :myValue ... etc.

      This was mentioned in a comment on QTBUG-28883.

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

            andysh Andy Shaw
            ow Øystein Walle
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are 2 open Gerrit changes