Disable the 'no transaction in progress' warning message that comes from

PostgreSQL (only for non-debug compilations).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4116 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2005-10-21 00:04:19 +00:00
parent e651ad901b
commit 3327eaf282

View File

@ -349,6 +349,12 @@ QgsPostgresProvider::QgsPostgresProvider(QString const & uri)
selectSQL += " from " + mSchemaTableName;
//--std::cout << "selectSQL: " << (const char *)selectSQL << std::endl;
// Set the postgresql message level so that we don't get the
// 'there is no transaction in progress' warning.
#ifndef QGISDEBUG
PQexec(connection, "set client_min_messages to error");
#endif
// Kick off the long running threads
#ifdef POSTGRESQL_THREADS