mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
e651ad901b
commit
3327eaf282
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user