Skip to content

Commit

Permalink
[postgres] A bit less talky
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 24, 2017
1 parent 5261a9a commit e086d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresconn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ bool QgsPostgresConn::openCursor( const QString &cursorName, const QString &sql
{
if ( mOpenCursors++ == 0 && !mTransaction )
{
QgsDebugMsg( QString( "Starting read-only transaction: %1" ).arg( mPostgresqlVersion ) );
QgsDebugMsgLevel( QString( "Starting read-only transaction: %1" ).arg( mPostgresqlVersion ), 4 );
if ( mPostgresqlVersion >= 80000 )
PQexecNR( QStringLiteral( "BEGIN READ ONLY" ) );
else
Expand All @@ -1084,7 +1084,7 @@ bool QgsPostgresConn::closeCursor( const QString &cursorName )

if ( --mOpenCursors == 0 && !mTransaction )
{
QgsDebugMsg( "Committing read-only transaction" );
QgsDebugMsgLevel( "Committing read-only transaction", 4 );
PQexecNR( QStringLiteral( "COMMIT" ) );
}

Expand Down

0 comments on commit e086d9a

Please sign in to comment.