summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
diff options
context:
space:
mode:
authorBill King <bking@trolltech.com>2009-06-30 03:39:58 (GMT)
committerBill King <bking@trolltech.com>2009-06-30 03:41:40 (GMT)
commit5c23c8e36d07410e53026c7ddd19f00f9984a6e7 (patch)
tree63ce01f79a94a1962d2fa9212b0cc3dcc1f386c8 /tests/auto/qsqldatabase/tst_qsqldatabase.cpp
parente3c1039d4d10aa383a1f681e7dd9c1129d22d8ca (diff)
downloadQt-5c23c8e36d07410e53026c7ddd19f00f9984a6e7.zip
Qt-5c23c8e36d07410e53026c7ddd19f00f9984a6e7.tar.gz
Qt-5c23c8e36d07410e53026c7ddd19f00f9984a6e7.tar.bz2
Fixes more DB autotests for testing against SQL Server
Diffstat (limited to 'tests/auto/qsqldatabase/tst_qsqldatabase.cpp')
-rw-r--r--tests/auto/qsqldatabase/tst_qsqldatabase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
index f697488..23b1eb5 100644
--- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
+++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
@@ -298,6 +298,7 @@ void tst_QSqlDatabase::createTestTables(QSqlDatabase db)
q.exec("set table_type=innodb");
if (tst_Databases::isSqlServer(db)) {
QVERIFY_SQL(q, exec("SET ANSI_DEFAULTS ON"));
+ QVERIFY_SQL(q, exec("SET IMPLICIT_TRANSACTIONS OFF"));
}
// please never ever change this table; otherwise fix all tests ;)
@@ -354,10 +355,9 @@ void tst_QSqlDatabase::dropTestTables(QSqlDatabase db)
q.exec("drop schema " + qTableName("qtestschema") + " cascade");
if (testWhiteSpaceNames(db.driverName()))
- tableNames << (qTableName("qtest") + " test");
+ tableNames << db.driver()->escapeIdentifier(qTableName("qtest") + " test", QSqlDriver::TableName);
tst_Databases::safeDropTables(db, tableNames);
- tst_Databases::safeDropView(db, qTableName("qtest_view"));
}
void tst_QSqlDatabase::populateTestTables(QSqlDatabase db)