Skip to content

Commit

Permalink
just return true if trying to delete an empty set
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Apr 25, 2020
1 parent b350cd0 commit 0c27ec4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -2536,6 +2536,9 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist, Flags flags )

bool QgsPostgresProvider::deleteFeatures( const QgsFeatureIds &ids )
{
if ( ids.isEmpty() )
return true;

bool returnvalue = true;

if ( mIsQuery )
Expand Down

0 comments on commit 0c27ec4

Please sign in to comment.