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

option QSQLITE_OPEN_READONLY clobbers QSQLITE_OPEN_URI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.2.0 RC1
    • SQL Support
    • None
    • 4f28464ab7dfe9f18cd72fc022257e66a8e2b279

    Description

      The option QSQLITE_OPEN_URI is suppressed if followed by QSQLITE_OPEN_READONLY in the option string.

      I.e., this doesn't work as expected:

      database.setConnectOptions("QSQLITE_ENABLE_SHARED_CACHE;QSQLITE_OPEN_URI;QSQLITE_OPEN_READONLY")

      This works:

      database.setConnectOptions("QSQLITE_OPEN_READONLY;QSQLITE_ENABLE_SHARED_CACHE;QSQLITE_OPEN_URI")

      Commit 1f6dfa774959830a915f3e2a7b0561ca29b8c485 introduced QSQLITE_OPEN_URI and exposes the problem with QSQLITE_OPEN_READONLY.

      See qsql_sqlite.cpp

      Attachments

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

        Activity

          People

            tokoe.kdab Tobias Koenig
            mabrand Mark Brand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes