diff options
author | Bill King <bill.king@nokia.com> | 2009-06-16 05:14:25 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-06-16 05:14:25 (GMT) |
commit | 3cd7289548c00fe2dcbe790ab4be4f4eca1d4fb3 (patch) | |
tree | 86bc1d5350edab3d103e147034d6f8eb3a9ed98c /tests/auto/qsqldatabase/tst_qsqldatabase.cpp | |
parent | faabe90b69551e14317d85f376f040a3dc3ae0bd (diff) | |
download | Qt-3cd7289548c00fe2dcbe790ab4be4f4eca1d4fb3.zip Qt-3cd7289548c00fe2dcbe790ab4be4f4eca1d4fb3.tar.gz Qt-3cd7289548c00fe2dcbe790ab4be4f4eca1d4fb3.tar.bz2 |
Fixes to get some MS Sql Server tests running again + new db definitions.
Diffstat (limited to 'tests/auto/qsqldatabase/tst_qsqldatabase.cpp')
-rw-r--r-- | tests/auto/qsqldatabase/tst_qsqldatabase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp index 4fa3dc4..1a5eac3 100644 --- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp +++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp @@ -296,6 +296,9 @@ void tst_QSqlDatabase::createTestTables(QSqlDatabase db) // ### stupid workaround until we find a way to hardcode this // in the MySQL server startup script q.exec("set table_type=innodb"); + if (tst_Databases::isSqlServer(db)) { + QVERIFY_SQL(q, exec("SET ANSI_DEFAULTS ON")); + } // please never ever change this table; otherwise fix all tests ;) if (tst_Databases::isMSAccess(db)) { |