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

QSqlTableModel::insertRow()/selectRow() does not work w/ AUTOINCREMENT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.2
    • 5.0.0
    • SQL Support
    • None
    • c3ae1c76f349bac2e262929d29163cd9b5d60332

    Description

      QSqlTableModel::selectRow() does not work with primary keys supplied by the database, as for example in AUTOINCREMENT, due to generating a WHERE primaryKey = NULL clause, because the value of the primary key is not available.

      See also http://lists.qt-project.org/pipermail/development/2012-September/006261.html

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            lgeyer Lukas Geyer
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes