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

QSqlRecord::field documentation is inconsise

    XMLWordPrintable

Details

    Description

      The documentation for QSqlRecord::field states:
      "Returns the field at position index. If the position is out of range, an empty field is returned."

      The QSqlField class however, does not seem to have a concept of being "empty". If it would have, it should have an isEmpty() method, just like other classes that can be empty. Instead, QSqlField can be Null and can be valid or invalid, but it is not clear from the documentation of QSqlRecord which one will be returned for an out of range position.

      Attachments

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

        Activity

          People

            teemukat Teemu Katajisto (Inactive)
            andre André Somers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes