diff options
author | Bill King <bill.king@nokia.com> | 2009-09-28 05:38:17 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-09-28 05:41:51 (GMT) |
commit | 3e59128ccb56261c8f66d6f0cbe1032506f81cac (patch) | |
tree | 6abb2a178cf614bac8dc476280553bb1e52a0fdf /tests | |
parent | 46eff02e5dc36f26d7f10bbc74e04875a9fb7220 (diff) | |
download | Qt-3e59128ccb56261c8f66d6f0cbe1032506f81cac.zip Qt-3e59128ccb56261c8f66d6f0cbe1032506f81cac.tar.gz Qt-3e59128ccb56261c8f66d6f0cbe1032506f81cac.tar.bz2 |
Fixes autotest trying to delete table from wrong DB
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qsqlquery/tst_qsqlquery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsqlquery/tst_qsqlquery.cpp b/tests/auto/qsqlquery/tst_qsqlquery.cpp index eb95d611c..5ed9cfa 100644 --- a/tests/auto/qsqlquery/tst_qsqlquery.cpp +++ b/tests/auto/qsqlquery/tst_qsqlquery.cpp @@ -2352,7 +2352,7 @@ void tst_QSqlQuery::sqlite_finish() QString tableName = qTableName( "qtest_lockedtable" ); QSqlQuery q( db ); - tst_Databases::safeDropTable( db2, tableName ); + tst_Databases::safeDropTable( db, tableName ); q.exec( "CREATE TABLE " + tableName + " (pk_id INTEGER PRIMARY KEY, whatever TEXT)" ); q.exec( "INSERT INTO " + tableName + " values(1, 'whatever')" ); q.exec( "INSERT INTO " + tableName + " values(2, 'whatever more')" ); @@ -2371,7 +2371,7 @@ void tst_QSqlQuery::sqlite_finish() QVERIFY_SQL( q2, exec( "DELETE FROM " + tableName + " WHERE pk_id=2" ) ); QCOMPARE( q2.numRowsAffected(), 1 ); - tst_Databases::safeDropTable( db2, tableName ); + tst_Databases::safeDropTable( db, tableName ); } QSqlDatabase::removeDatabase( "sqlite_finish_sqlite" ); |