Skip to content

Commit fb0b8fd

Browse files
committedOct 25, 2018
[mssql] For consistency with other providers deleteFeatures should return true to an empty list
1 parent cd64d31 commit fb0b8fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/mssql/qgsmssqlprovider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,9 @@ bool QgsMssqlProvider::deleteFeatures( const QgsFeatureIds &id )
13851385
if ( mFidColName.isEmpty() )
13861386
return false;
13871387

1388+
if ( id.empty() )
1389+
return true; // for consistency providers return true to an empty list
1390+
13881391
QString featureIds;
13891392
for ( QgsFeatureIds::const_iterator it = id.begin(); it != id.end(); ++it )
13901393
{

0 commit comments

Comments
 (0)
Please sign in to comment.