Skip to content

Commit 0521bfc

Browse files
agiudiceandreanyalldawson
authored andcommitted
Fix Virtual layers display with empty subsetstring
Fixes #19721 Virtual layers incorrectly show no feature when the expression filter string is empty, instead of correctly showing all the features. Subset string needs to be tested against Empty instead of Null in order to correctly populate the wheres list and prepare a well formed SQL query string. (cherry picked from commit 99696b6)
1 parent 60fed67 commit 0521bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/virtual/qgsvirtuallayerfeatureiterator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ QgsVirtualLayerFeatureIterator::QgsVirtualLayerFeatureIterator( QgsVirtualLayerF
6565
QStringList wheres;
6666
QString offset;
6767
QString subset = mSource->mSubset;
68-
if ( !subset.isNull() )
68+
if ( !subset.isEmpty() )
6969
{
7070
wheres << subset;
7171
}

0 commit comments

Comments
 (0)