File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1962,7 +1962,8 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
1962
1962
}
1963
1963
1964
1964
conn->PQexecNR ( " DEALLOCATE addfeatures" );
1965
- conn->commit ();
1965
+
1966
+ returnvalue &= conn->commit ();
1966
1967
1967
1968
mShared ->addFeaturesCounted ( flist.size () );
1968
1969
}
@@ -2010,7 +2011,7 @@ bool QgsPostgresProvider::deleteFeatures( const QgsFeatureIds & id )
2010
2011
mShared ->removeFid ( *it );
2011
2012
}
2012
2013
2013
- conn->commit ();
2014
+ returnvalue &= conn->commit ();
2014
2015
2015
2016
if ( mSpatialColType == sctTopoGeometry )
2016
2017
{
@@ -2095,7 +2096,7 @@ bool QgsPostgresProvider::addAttributes( const QList<QgsField> &attributes )
2095
2096
}
2096
2097
}
2097
2098
2098
- conn->commit ();
2099
+ returnvalue &= conn->commit ();
2099
2100
}
2100
2101
catch ( PGException &e )
2101
2102
{
@@ -2150,7 +2151,7 @@ bool QgsPostgresProvider::deleteAttributes( const QgsAttributeIds& ids )
2150
2151
mAttributeFields .remove ( index );
2151
2152
}
2152
2153
2153
- conn->commit ();
2154
+ returnvalue &= conn->commit ();
2154
2155
}
2155
2156
catch ( PGException &e )
2156
2157
{
@@ -2262,7 +2263,7 @@ bool QgsPostgresProvider::changeAttributeValues( const QgsChangedAttributesMap &
2262
2263
}
2263
2264
}
2264
2265
2265
- conn->commit ();
2266
+ returnvalue &= conn->commit ();
2266
2267
}
2267
2268
catch ( PGException &e )
2268
2269
{
@@ -2458,7 +2459,8 @@ bool QgsPostgresProvider::changeGeometryValues( QgsGeometryMap & geometry_map )
2458
2459
connectionRO ()->PQexecNR ( " DEALLOCATE getid" );
2459
2460
conn->PQexecNR ( " DEALLOCATE replacetopogeom" );
2460
2461
}
2461
- conn->commit ();
2462
+
2463
+ returnvalue &= conn->commit ();
2462
2464
}
2463
2465
catch ( PGException &e )
2464
2466
{
You can’t perform that action at this time.
0 commit comments