diff options
author | Bill King <bill.king@nokia.com> | 2009-06-23 05:10:52 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-06-23 05:11:59 (GMT) |
commit | 3647de5291db9e359e7844f80202251f47e83a97 (patch) | |
tree | 619b822e49e5c999b229b241605779c950521f0f /tests/auto/qsqltablemodel | |
parent | a8eda447bbf87ebd4041c851022af389a0e388e0 (diff) | |
download | Qt-3647de5291db9e359e7844f80202251f47e83a97.zip Qt-3647de5291db9e359e7844f80202251f47e83a97.tar.gz Qt-3647de5291db9e359e7844f80202251f47e83a97.tar.bz2 |
Cleanup of db test cases.
Mostly cleanup of dropping of tables to a consistent place.
Also enable itemmodel tests.
Diffstat (limited to 'tests/auto/qsqltablemodel')
-rw-r--r-- | tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp b/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp index aa882be..1445f34 100644 --- a/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp +++ b/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp @@ -899,7 +899,7 @@ void tst_QSqlTableModel::sqlite_attachedDatabase() QVERIFY_SQL( q, exec("INSERT INTO atest2 VALUES(2, 'attached-atest2')")); QSqlQuery q2(db); - tst_Databases::safeDropTables(db, QStringList() << "atest"); + tst_Databases::safeDropTable(db, "atest"); QVERIFY_SQL(q2, exec("CREATE TABLE atest(id int, text varchar(20))")); QVERIFY_SQL(q2, exec("INSERT INTO atest VALUES(3, 'main')")); QVERIFY_SQL(q2, exec("ATTACH DATABASE \""+attachedDb.databaseName()+"\" as adb")); |