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

QSqlTableMode::submitAll() indicates success when operating on an invalid database connection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.2
    • 4.4.3
    • SQL Support
    • None
    • d300e8208928084b62bbde01fb81bd66bc967bc8

      QSqlTableMode::submitAll() indicates success when operating on an invalid database connection, i.e.

      QSqlDatabase db;

      QSqlTableModel model(NULL, db);
      model.setTable("SOMETABLENAME");
      model.insertRows(0, 1);
      model.setData(model.index(0, model.fieldIndex("SOMEATTRIBUTENAME"), 999);

      bool success = model.submitAll(); //returns true

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

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            admin Administrator
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes