summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqlquerymodel
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/qsqlquerymodel
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/qsqlquerymodel')
-rw-r--r--tests/auto/qsqlquerymodel/tst_qsqlquerymodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qsqlquerymodel/tst_qsqlquerymodel.cpp b/tests/auto/qsqlquerymodel/tst_qsqlquerymodel.cpp
index 391219b..3131f35 100644
--- a/tests/auto/qsqlquerymodel/tst_qsqlquerymodel.cpp
+++ b/tests/auto/qsqlquerymodel/tst_qsqlquerymodel.cpp
@@ -158,6 +158,8 @@ void tst_QSqlQueryModel::createTestTables(QSqlDatabase db)
{
dropTestTables(db);
QSqlQuery q(db);
+ if(tst_Databases::isPostgreSQL(db))
+ QVERIFY_SQL( q, exec("set client_min_messages='warning'"));
QVERIFY_SQL( q, exec("create table " + qTableName("test") + "(id integer not null, name varchar(20), title integer, primary key (id))"));
QVERIFY_SQL( q, exec("create table " + qTableName("test2") + "(id integer not null, title varchar(20), primary key (id))"));
QVERIFY_SQL( q, exec("create table " + qTableName("test3") + "(id integer not null, primary key (id))"));