summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqlquery
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-10-14 03:54:05 (GMT)
committerBill King <bill.king@nokia.com>2009-10-14 03:57:07 (GMT)
commitc03d97cde16a398df8b4895672a94a015bf5ca5b (patch)
tree9570a348a340b084d87cf75e1e5ae766988c0c4c /tests/auto/qsqlquery
parent9d58da36c9790e60aead8de4477c80332d3e0a62 (diff)
downloadQt-c03d97cde16a398df8b4895672a94a015bf5ca5b.zip
Qt-c03d97cde16a398df8b4895672a94a015bf5ca5b.tar.gz
Qt-c03d97cde16a398df8b4895672a94a015bf5ca5b.tar.bz2
Remove excess spam from autotests when postgresql creates primary indexes.
Diffstat (limited to 'tests/auto/qsqlquery')
-rw-r--r--tests/auto/qsqlquery/tst_qsqlquery.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qsqlquery/tst_qsqlquery.cpp b/tests/auto/qsqlquery/tst_qsqlquery.cpp
index 5ed9cfa..546c105 100644
--- a/tests/auto/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/qsqlquery/tst_qsqlquery.cpp
@@ -333,6 +333,8 @@ void tst_QSqlQuery::createTestTables( QSqlDatabase db )
// ### stupid workaround until we find a way to hardcode this
// in the MySQL server startup script
q.exec( "set table_type=innodb" );
+ else if(tst_Databases::isPostgreSQL(db))
+ QVERIFY_SQL( q, exec("set client_min_messages='warning'"));
if(tst_Databases::isPostgreSQL(db))
QVERIFY_SQL( q, exec( "create table " + qTableName( "qtest" ) + " (id serial NOT NULL, t_varchar varchar(20), t_char char(20), primary key(id)) WITH OIDS" ) );
@@ -1645,6 +1647,9 @@ void tst_QSqlQuery::prepare_bind_exec()
QString createQuery;
+ if(tst_Databases::isPostgreSQL(db))
+ QVERIFY_SQL( q, exec("set client_min_messages='warning'"));
+
if ( tst_Databases::isSqlServer( db ) || db.driverName().startsWith( "QTDS" ) )
createQuery = "create table " + qTableName( "qtest_prepare" ) + " (id int primary key, name nvarchar(20) null)";
else if ( db.driverName().startsWith( "QMYSQL" ) && useUnicode )