diff options
author | Bill King <bill.king@nokia.com> | 2009-04-06 21:45:10 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-04-06 21:45:10 (GMT) |
commit | 6393b9fa8474b7b9e86319f54477cba9bec65d11 (patch) | |
tree | 48e00c5bf7c9e395cd2134eb3dc61a8d45e5fb89 /tests | |
parent | 948de0dc991e324cdfb01f2e84a6aadfbf8d737f (diff) | |
download | Qt-6393b9fa8474b7b9e86319f54477cba9bec65d11.zip Qt-6393b9fa8474b7b9e86319f54477cba9bec65d11.tar.gz Qt-6393b9fa8474b7b9e86319f54477cba9bec65d11.tar.bz2 |
Make compile when Qt3Support is turned off
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qsqldatabase/tst_qsqldatabase.cpp | 2 |
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[] = { |