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

QSqlDatabase::close() not working with SQLite

XMLWordPrintable

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

      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();
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes