Skip to content

Commit

Permalink
Fix crash on postgis error
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 15, 2016
1 parent b09a743 commit 101d834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 101d834

Please sign in to comment.