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

sqlite_sequence is not considered a systems table

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 4.8.1, 5.13.1
    • SQL Support
    • None
    • Linux Ubuntu 12.04 LTS

    Description

      When used with a SQLite database, the table sqlite_sequence is returned by QSqlDatabase::tables(QSql::Tables) and not by QSqlDatabase::tables(Sql::SystemTables). Lukas convinced me that this is in line with sqlite (see our discussion at http://qt-project.org/forums/viewthread/23147). However, it is still an unexpected behaviour.

      I suggest to include a hint in the documentation (i.e., in file http://qt.gitorious.org/qt/qt/blobs/4.8/src/sql/kernel/qsql.qdoc, line 99): "\value Tables All the tables visible to the user. (Note: this includes sqlite_sequence as sqlite considers it a regular table)"

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            al__ Andreas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes