summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBill King <bking@trolltech.com>2009-07-15 06:12:32 (GMT)
committerBill King <bking@trolltech.com>2009-07-15 06:12:32 (GMT)
commitb96ee5694a68607f64ee9f97061fad1e8f715d94 (patch)
tree9b071f04543919414042ba2a4af03e202888878d /tests
parent454096217002f02379b4450e6e3d312f46c8cda9 (diff)
downloadQt-b96ee5694a68607f64ee9f97061fad1e8f715d94.zip
Qt-b96ee5694a68607f64ee9f97061fad1e8f715d94.tar.gz
Qt-b96ee5694a68607f64ee9f97061fad1e8f715d94.tar.bz2
Fixes sql autotests.
Now that the precisionPolicy stuff is fixed, sql server seems to be behaving correctly (with double values, but still not with string values).
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp b/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp
index 0a2e46e..e4b1a55 100644
--- a/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp
+++ b/tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp
@@ -574,10 +574,7 @@ void tst_Q3SqlCursor::precision()
QVERIFY_SQL(cur, select());
QVERIFY( cur.next() );
- if(!tst_Databases::isSqlServer(db))
- QCOMPARE( cur.value( 0 ).asString(), precStr );
- else
- QCOMPARE( cur.value( 0 ).asString(), precStr.left(precStr.size()-1) ); // Sql server fails at counting.
+ QCOMPARE( cur.value( 0 ).asString(), precStr );
QVERIFY( cur.next() );
QCOMPARE( cur.value( 0 ).asDouble(), precDbl );
}