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

Some way to know if bound values are used

    XMLWordPrintable

Details

    Description

      It is possible to bind values with QSqlQuery::bindValue that are not in the actual query. And in case user makes a typo, a value is not used and is passed as NULL to the database.

      There could be a function that checks that all placeholders in query are bound to, and perhaps even gives a list of those that aren't.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes