Skip to content
Permalink
Browse files

Fix crash on postgis error

  • Loading branch information
m-kuhn committed Apr 15, 2016
1 parent b09a743 commit 101d834a16ec962761df75129827f1a94713d821
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/postgres/qgspostgresprovider.cpp
@@ -2524,11 +2524,11 @@ bool QgsPostgresProvider::changeGeometryValues( const QgsGeometryMap &geometry_m
{
pushError( tr( "PostGIS error while changing geometry values: %1" ).arg( e.errorMessage() ) );
conn->rollback();
mConnectionRW->PQexecNR( "DEALLOCATE updatefeatures" );
conn->PQexecNR( "DEALLOCATE updatefeatures" );
if ( mSpatialColType == sctTopoGeometry )
{
mConnectionRO->PQexecNR( "DEALLOCATE getid" );
mConnectionRW->PQexecNR( "DEALLOCATE replacetopogeom" );
connectionRO()->PQexecNR( "DEALLOCATE getid" );
conn->PQexecNR( "DEALLOCATE replacetopogeom" );
}
returnvalue = false;
}

0 comments on commit 101d834

Please sign in to comment.
You can’t perform that action at this time.