diff options
author | Bill King <bking@trolltech.com> | 2009-09-10 01:18:12 (GMT) |
---|---|---|
committer | Bill King <bking@trolltech.com> | 2009-09-10 01:22:57 (GMT) |
commit | 6951212ff053ce1eee458d364896ab2e05d8ab05 (patch) | |
tree | e7757c48e3db5fa6e22fb13355bb9b1e680b32f6 /tests/auto/qsqldriver | |
parent | 9fe43c999d3d9b21836345522bb67bab38e661af (diff) | |
download | Qt-6951212ff053ce1eee458d364896ab2e05d8ab05.zip Qt-6951212ff053ce1eee458d364896ab2e05d8ab05.tar.gz Qt-6951212ff053ce1eee458d364896ab2e05d8ab05.tar.bz2 |
Fixes another SQL Server autotest result.
Diffstat (limited to 'tests/auto/qsqldriver')
-rw-r--r-- | tests/auto/qsqldriver/tst_qsqldriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsqldriver/tst_qsqldriver.cpp b/tests/auto/qsqldriver/tst_qsqldriver.cpp index a10bd14..f463c9e 100644 --- a/tests/auto/qsqldriver/tst_qsqldriver.cpp +++ b/tests/auto/qsqldriver/tst_qsqldriver.cpp @@ -160,7 +160,7 @@ void tst_QSqlDriver::record() //check that we can't get records using incorrect tablename casing that's been quoted rec = db.driver()->record(db.driver()->escapeIdentifier(tablename,QSqlDriver::TableName)); - if (tst_Databases::isMySQL(db) || db.driverName().startsWith("QSQLITE") || db.driverName().startsWith("QTDS")) + if (tst_Databases::isMySQL(db) || db.driverName().startsWith("QSQLITE") || db.driverName().startsWith("QTDS") || tst_Databases::isSqlServer(db)) QCOMPARE(rec.count(), 4); //mysql, sqlite and tds will match else QCOMPARE(rec.count(), 0); @@ -208,7 +208,7 @@ void tst_QSqlDriver::primaryIndex() tablename = tablename.toUpper(); index = db.driver()->primaryIndex(db.driver()->escapeIdentifier(tablename, QSqlDriver::TableName)); - if (tst_Databases::isMySQL(db) || db.driverName().startsWith("QSQLITE") || db.driverName().startsWith("QTDS")) + if (tst_Databases::isMySQL(db) || db.driverName().startsWith("QSQLITE") || db.driverName().startsWith("QTDS") || tst_Databases::isSqlServer(db)) QCOMPARE(index.count(), 1); //mysql will always find the table name regardless of casing else QCOMPARE(index.count(), 0); |