summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqldatabase
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-04-06 21:45:10 (GMT)
committerBill King <bill.king@nokia.com>2009-04-06 21:45:10 (GMT)
commit6393b9fa8474b7b9e86319f54477cba9bec65d11 (patch)
tree48e00c5bf7c9e395cd2134eb3dc61a8d45e5fb89 /tests/auto/qsqldatabase
parent948de0dc991e324cdfb01f2e84a6aadfbf8d737f (diff)
downloadQt-6393b9fa8474b7b9e86319f54477cba9bec65d11.zip
Qt-6393b9fa8474b7b9e86319f54477cba9bec65d11.tar.gz
Qt-6393b9fa8474b7b9e86319f54477cba9bec65d11.tar.bz2
Make compile when Qt3Support is turned off
Diffstat (limited to 'tests/auto/qsqldatabase')
-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 51d5267..8dede12 100644
--- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
+++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp
@@ -1050,6 +1050,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
@@ -1059,6 +1060,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[] = {