summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDerick Hawcroft <derick.hawcroft@nokia.com>2009-07-08 00:50:09 (GMT)
committerDerick Hawcroft <derick.hawcroft@nokia.com>2009-07-08 00:50:09 (GMT)
commit355d058a0c7eba3ae3b2a54dda566d94a4134941 (patch)
tree17fe700225aee817058c1a3a19ccb20fa237d6e4 /tests
parent529df6f1dbcf8992417d03ef2c9c3ec3f2d7bc4b (diff)
downloadQt-355d058a0c7eba3ae3b2a54dda566d94a4134941.zip
Qt-355d058a0c7eba3ae3b2a54dda566d94a4134941.tar.gz
Qt-355d058a0c7eba3ae3b2a54dda566d94a4134941.tar.bz2
safely drop tables.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsqlquery/tst_qsqlquery.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qsqlquery/tst_qsqlquery.cpp b/tests/auto/qsqlquery/tst_qsqlquery.cpp
index 4b41eaf..30b85e8 100644
--- a/tests/auto/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/qsqlquery/tst_qsqlquery.cpp
@@ -295,6 +295,9 @@ void tst_QSqlQuery::dropTestTables( QSqlDatabase db )
<< qTableName( "blobstest" )
<< qTableName( "oraRowId" );
+ if ( db.driverName().startsWith("QPSQL") )
+ tablenames <<"task_233829";
+
if ( db.driverName().startsWith("QSQLITE") )
tablenames << qTableName( "record_sqlite" );
@@ -2839,7 +2842,6 @@ void tst_QSqlQuery::task_233829()
q.bindValue(0,0.0 / k); // nan
q.bindValue(1,0.0 / k); // nan
QVERIFY_SQL(q,exec());
- q.exec("DROP TABLE " + tableName);
}
QTEST_MAIN( tst_QSqlQuery )