summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-04-06 21:45:10 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-04-07 05:51:04 (GMT)
commit9dcc109d4101ecd73af8ddfb9155f737ec977340 (patch)
treebae8e91c2a43846e901b3741a06c82af86e029ab /tests
parentc40d4b7180be3ff33ced7d09e11d8607f475190c (diff)
downloadQt-9dcc109d4101ecd73af8ddfb9155f737ec977340.zip
Qt-9dcc109d4101ecd73af8ddfb9155f737ec977340.tar.gz
Qt-9dcc109d4101ecd73af8ddfb9155f737ec977340.tar.bz2
Make compile when Qt3Support is turned off
(cherry picked from commit 6393b9fa8474b7b9e86319f54477cba9bec65d11)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsqldatabase/tst_qsqldatabase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
index e10a0ca..1a66769 100644
--- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
+++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
@@ -1045,6 +1045,7 @@ void tst_QSqlDatabase::recordMySQL()
int minor = tst_Databases::getMySqlVersion( db ).section( QChar('.'), 1, 1 ).toInt();
int revision = tst_Databases::getMySqlVersion( db ).section( QChar('.'), 2, 2 ).toInt();
+#ifdef QT3_SUPPORT
/* The below is broken in mysql below 5.0.15
see http://dev.mysql.com/doc/refman/5.0/en/binary-varbinary.html
specifically: Before MySQL 5.0.15, the pad value is space. Values are right-padded
@@ -1054,6 +1055,7 @@ void tst_QSqlDatabase::recordMySQL()
bin10 = FieldDef("binary(10)", QVariant::ByteArray, QByteArray(Q3CString("123abc ")));
varbin10 = FieldDef("varbinary(10)", QVariant::ByteArray, QByteArray(Q3CString("123abcv ")));
}
+#endif
static QDateTime dt(QDate::currentDate(), QTime(1, 2, 3, 0));
static const FieldDef fieldDefs[] = {