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

QSqlDatabase::close() not working with SQLite

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.8.4
    • 4.8.3
    • SQL Support
    • None
    • Kubuntu quantal 64bits up to date / Qt 4.8.3

    Description

      Trying to close an unused sqlite QSqlDatabase does not works, testcase:

      QSqlDatabase db = QSqlDatabase::addDatabase( "QSQLITE", "tst_connection" );
      db.setDatabaseName( QDir::tempPath().append( "/tst_connection.db" ) );
      
      qWarning() << db.isOpen();
      qWarning() << db.open();
      db.close();
      qWarning() << db.isOpen();
      qWarning() << db.lastError();
      

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            pasnox Filipe Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes