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

parameter confusion in QSqlTableModel::deleteRowFromTable()

    XMLWordPrintable

Details

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

    Description

      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.

      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)
            orgads Orgad Shaneh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes