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

removeColumn + mapper = QSqlQuery::value not positioned..

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 4.6.2
    • Fix Version/s: None
    • Component/s: SQL Support
    • Labels:
      None
    • Environment:
      OS X Leopard, Linux x86_64. All with lastest qt (4.6.2)

      Description

      If I set up a QSqlRelationalTableModel, with 1+ relation, and remove a column[1] and use a QDataWidgetMapper [2] to map data from the model to a custom widget, ifand after call mapper->submit() [3] , I see on console the message

      QSqlQuery::value: not positioned on a valid record

      and the model isn't updated.

      [1] mainwindow.cpp:51
      [2] editingtablemask.cpp:14
      [3] editingtablemask.cpp:77

      I tested this example program on OS X and Linux x64_86, and get the same result (model isn't updated)
      I post also on Qt-interest mailing list, this is the link

      http://lists.trolltech.com/pipermail/qt-interest/2010-February/019439.html

        Attachments

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

          Activity

            People

            Assignee:
            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            Reporter:
            danimoth Dan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes