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

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

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes