summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqldatabase
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-10-13 03:55:09 (GMT)
committerBill King <bill.king@nokia.com>2009-10-13 03:55:09 (GMT)
commitde164c161c3ade4b5b5f4164495dd35578d31b1d (patch)
treed2ffab0d395dfbdfcb5dc2df904b96b238ccd090 /tests/auto/qsqldatabase
parent276309001a6a5c2c1a62e8d0336cae9ebf65e213 (diff)
downloadQt-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/qsqldatabase')
-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 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"));