diff options
author | Bill King <bking@trolltech.com> | 2009-10-13 02:00:42 (GMT) |
---|---|---|
committer | Bill King <bking@trolltech.com> | 2009-10-13 03:21:49 (GMT) |
commit | 99e7dcf532b1c84aa64a7ab9af9a5fd14fd64033 (patch) | |
tree | 62933ef2a7afc448ecf42677536dde8f4ea398a3 /tests/auto/q3sqlselectcursor | |
parent | bee70a74465ef837b446ef2d2309a002da5bfe30 (diff) | |
download | Qt-99e7dcf532b1c84aa64a7ab9af9a5fd14fd64033.zip Qt-99e7dcf532b1c84aa64a7ab9af9a5fd14fd64033.tar.gz Qt-99e7dcf532b1c84aa64a7ab9af9a5fd14fd64033.tar.bz2 |
Fixes autotests now for MS Access via ODBC.
Diffstat (limited to 'tests/auto/q3sqlselectcursor')
-rw-r--r-- | tests/auto/q3sqlselectcursor/tst_q3sqlselectcursor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/q3sqlselectcursor/tst_q3sqlselectcursor.cpp b/tests/auto/q3sqlselectcursor/tst_q3sqlselectcursor.cpp index 5893687..237f29d 100644 --- a/tests/auto/q3sqlselectcursor/tst_q3sqlselectcursor.cpp +++ b/tests/auto/q3sqlselectcursor/tst_q3sqlselectcursor.cpp @@ -108,8 +108,12 @@ void tst_Q3SqlSelectCursor::createTestTables( QSqlDatabase db ) return; QSqlQuery q( db ); // please never ever change this table; otherwise fix all tests ;) - QVERIFY_SQL(q, exec( "create table " + qTableName( "qtest" ) + " ( id int not null, t_varchar varchar(40) not null," - "t_char char(40), t_numeric numeric(6, 3), primary key (id, t_varchar) )" )); + if (tst_Databases::isMSAccess(db)) + QVERIFY_SQL(q, exec( "create table " + qTableName( "qtest" ) + " ( id int not null, t_varchar varchar(40) not null," + "t_char char(40), t_numeric number, primary key (id, t_varchar) )" )); + else + QVERIFY_SQL(q, exec( "create table " + qTableName( "qtest" ) + " ( id int not null, t_varchar varchar(40) not null," + "t_char char(40), t_numeric numeric(6, 3), primary key (id, t_varchar) )" )); } void tst_Q3SqlSelectCursor::dropTestTables( QSqlDatabase db ) |