diff options
author | Bill King <bking@trolltech.com> | 2009-09-09 03:37:09 (GMT) |
---|---|---|
committer | Bill King <bking@trolltech.com> | 2009-09-09 04:56:15 (GMT) |
commit | 62d1b1db21d2660bd5f2322cb9f09cf2598bf90b (patch) | |
tree | 9b38b0bcb98617122ca644d52718686cc4721304 /tests/auto/qsqldatabase | |
parent | eb2509f76c7d61564c10bfe0f4044c46e08a8979 (diff) | |
download | Qt-62d1b1db21d2660bd5f2322cb9f09cf2598bf90b.zip Qt-62d1b1db21d2660bd5f2322cb9f09cf2598bf90b.tar.gz Qt-62d1b1db21d2660bd5f2322cb9f09cf2598bf90b.tar.bz2 |
Fixes autotest for MS SQL Server
Diffstat (limited to 'tests/auto/qsqldatabase')
-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 1a6f29e..675b170 100644 --- a/tests/auto/qsqldatabase/tst_qsqldatabase.cpp +++ b/tests/auto/qsqldatabase/tst_qsqldatabase.cpp @@ -2034,7 +2034,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); |