diff options
author | Bill King <bking@trolltech.com> | 2009-07-02 04:59:14 (GMT) |
---|---|---|
committer | Bill King <bking@trolltech.com> | 2009-07-02 05:02:12 (GMT) |
commit | a24b8166631a9b1d80f8205cd0e450824166a25d (patch) | |
tree | 2dfcb29a1cfba126155cdc77fc5bd73f38d158f6 /tests/auto/q3sqlcursor | |
parent | 35a4141f01ab9db910c85ccb89e76058aa3ac5cf (diff) | |
download | Qt-a24b8166631a9b1d80f8205cd0e450824166a25d.zip Qt-a24b8166631a9b1d80f8205cd0e450824166a25d.tar.gz Qt-a24b8166631a9b1d80f8205cd0e450824166a25d.tar.bz2 |
Get more autotests passing/fixed up.
Diffstat (limited to 'tests/auto/q3sqlcursor')
-rw-r--r-- | tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp b/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp index a2f4a66..91533dd 100644 --- a/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp +++ b/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp @@ -132,6 +132,10 @@ void tst_Q3SqlCursor::createTestTables( QSqlDatabase db ) if ( !db.isValid() ) return; QSqlQuery q( db ); + 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 ;) if ( tst_Databases::isMSAccess( db ) ) { QVERIFY_SQL(q, exec( "create table " + qTableName( "qtest" ) + " ( id int not null, t_varchar varchar(40) not null," |