mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
[postgres] A bit less talky
This commit is contained in:
parent
5261a9a5df
commit
e086d9a56a
@ -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
|
||||
@ -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" ) );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user