diff options
author | Bill King <bking@trolltech.com> | 2009-09-09 03:37:09 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-09-10 01:54:44 (GMT) |
commit | df4033a1f7ef0786fba6d4d2027e38a2fffd1e27 (patch) | |
tree | 193bd5963c00af87ff2e5104065f1b7deee67ba3 /tests | |
parent | b19372c11549bc1f88b3e59fa94745645503b8e6 (diff) | |
download | Qt-df4033a1f7ef0786fba6d4d2027e38a2fffd1e27.zip Qt-df4033a1f7ef0786fba6d4d2027e38a2fffd1e27.tar.gz Qt-df4033a1f7ef0786fba6d4d2027e38a2fffd1e27.tar.bz2 |
Fixes autotest for MS SQL Server
Merging fix back into 4.5 tree
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qsqldatabase/tst_qsqldatabase.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp index 9ca48f5..a3a4712 100644 --- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp +++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp @@ -2015,7 +2015,10 @@ void tst_QSqlDatabase::odbc_testqGetString() CHECK_DATABASE(db); QSqlQuery q(db); - QVERIFY_SQL(q, exec("CREATE TABLE " + qTableName("testqGetString") + "(id int, vcvalue varchar(65538))")); + if (tst_Databases::isSqlServer(db)) + QVERIFY_SQL(q, exec("CREATE TABLE " + qTableName("testqGetString") + "(id int, vcvalue varchar(MAX))")); + else + QVERIFY_SQL(q, exec("CREATE TABLE " + qTableName("testqGetString") + "(id int, vcvalue varchar(65538))")); QString largeString; largeString.fill('A', 65536); |