summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqldatabase
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-08-03 04:21:06 (GMT)
committerBill King <bill.king@nokia.com>2009-08-03 04:21:06 (GMT)
commitf083e9c9aa59790695136811181f5f455d1c9dad (patch)
treee593b57b028fef218ee6344fc667131dc2e1f103 /tests/auto/qsqldatabase
parent9c45d4daab2196b6418e7fb2be70f9e6d7a57799 (diff)
downloadQt-f083e9c9aa59790695136811181f5f455d1c9dad.zip
Qt-f083e9c9aa59790695136811181f5f455d1c9dad.tar.gz
Qt-f083e9c9aa59790695136811181f5f455d1c9dad.tar.bz2
Fix more database autotests.
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 025e895..ff62741 100644
--- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
+++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
@@ -2009,8 +2009,8 @@ void tst_QSqlDatabase::mysql_multiselect()
QVERIFY_SQL(q, exec("select version()"));
QVERIFY_SQL(q, next());
QString version=tst_Databases::getMySqlVersion( db );
- int ver=version.section(QChar::fromLatin1('.'),0,1).toDouble();
- if (ver >= 4.1)
+ double ver=version.section(QChar::fromLatin1('.'),0,1).toDouble();
+ if (ver < 4.1)
QSKIP("Test requires MySQL >= 4.1", SkipSingle);
QVERIFY_SQL(q, exec("SELECT * FROM " + qTableName("qtest") + "; SELECT * FROM " + qTableName("qtest")));