diff options
author | Bill King <bill.king@nokia.com> | 2009-10-13 03:55:09 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-10-13 03:55:09 (GMT) |
commit | de164c161c3ade4b5b5f4164495dd35578d31b1d (patch) | |
tree | d2ffab0d395dfbdfcb5dc2df904b96b238ccd090 /tests/auto | |
parent | 276309001a6a5c2c1a62e8d0336cae9ebf65e213 (diff) | |
download | Qt-de164c161c3ade4b5b5f4164495dd35578d31b1d.zip Qt-de164c161c3ade4b5b5f4164495dd35578d31b1d.tar.gz Qt-de164c161c3ade4b5b5f4164495dd35578d31b1d.tar.bz2 |
Fixes autotest: Savepoints are actually supported from 4.1 onwards.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qsqldatabase/tst_qsqldatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp index ed13340..7149fab 100644 --- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp +++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp @@ -2449,8 +2449,8 @@ void tst_QSqlDatabase::mysql_savepointtest() QFETCH(QString, dbName); QSqlDatabase db = QSqlDatabase::database(dbName); CHECK_DATABASE(db); - if ( db.driverName().startsWith( "QMYSQL" ) && tst_Databases::getMySqlVersion( db ).section( QChar('.'), 0, 0 ).toInt()<5 ) - QSKIP( "Test requires MySQL >= 5.0", SkipSingle ); + if ( db.driverName().startsWith( "QMYSQL" ) && tst_Databases::getMySqlVersion( db ).section( QChar('.'), 0, 1 ).toInt()<4.1 ) + QSKIP( "Test requires MySQL >= 4.1", SkipSingle ); QSqlQuery q(db); QVERIFY_SQL(q, exec("begin")); |