File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1135,7 +1135,7 @@ bool QgsPostgresProvider::hasSufficientPermsAndCapabilities()
11351135 if ( testAccess.PQgetvalue ( 0 , 0 ) == QLatin1String ( " t" ) )
11361136 {
11371137 // DELETE
1138- mEnabledCapabilities |= QgsVectorDataProvider::DeleteFeatures | QgsVectorDataProvider::Truncate ;
1138+ mEnabledCapabilities |= QgsVectorDataProvider::DeleteFeatures | QgsVectorDataProvider::FastTruncate ;
11391139 }
11401140
11411141 if ( testAccess.PQgetvalue ( 0 , 1 ) == QLatin1String ( " t" ) )
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
532532 if (( mTableBased || mViewBased ) && !mReadOnly )
533533 {
534534 // enabling editing only for Tables [excluding Views and VirtualShapes]
535- mEnabledCapabilities |= QgsVectorDataProvider::DeleteFeatures | QgsVectorDataProvider::Truncate ;
535+ mEnabledCapabilities |= QgsVectorDataProvider::DeleteFeatures | QgsVectorDataProvider::FastTruncate ;
536536 if ( !mGeometryColumn .isEmpty () )
537537 mEnabledCapabilities |= QgsVectorDataProvider::ChangeGeometries;
538538 mEnabledCapabilities |= QgsVectorDataProvider::ChangeAttributeValues;
You can’t perform that action at this time.
0 commit comments