Skip to content
Permalink
Browse files

[mssql] For consistency with other providers deleteFeatures should re…

…turn true to an empty list
  • Loading branch information
nyalldawson committed Oct 22, 2018
1 parent cd64d31 commit fb0b8fdadc6ad18aed51573f0720e345c22ef6c7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/mssql/qgsmssqlprovider.cpp
@@ -1385,6 +1385,9 @@ bool QgsMssqlProvider::deleteFeatures( const QgsFeatureIds &id )
if ( mFidColName.isEmpty() )
return false;

if ( id.empty() )
return true; // for consistency providers return true to an empty list

QString featureIds;
for ( QgsFeatureIds::const_iterator it = id.begin(); it != id.end(); ++it )
{

0 comments on commit fb0b8fd

Please sign in to comment.
You can’t perform that action at this time.