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

parameter confusion in QSqlTableModel::deleteRowFromTable()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.1
    • SQL Support
    • None

      On qsqltablemodel.cpp:690 there is a call to d->exec(stmt, prepStatement, whereValues).

      whereValues should be the FOURTH parameter, not the third (see exec definition)

      This causes problems when trying to delete a row (with SQLite) that has a null value and has no primary key...

      Patch attached.

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

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            orgads Orgad Shaneh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes