Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter on joined fields: add geometry for spatial layer and handle sp…
…ecial field/layer names Fixes #19636 "Filter on joined fields" does not work properly in the following two circumstances: - when the (original) layer is a "spatial layer": the virtual layer created is an attribute only / non-spatial layer, instead of a spatial one - when at least a field name or a layer name starts with a digit or contains white spaces (or probably also other special characters): the virtual layer is not created at all (actually is created and instantly deleted) without warning the user This fixes both and also updates the related tests accordingly and adds another test.* Enclose field/layer names in double quotes. See also [QGIS-Developer] "Filter on joined fields" and Virtual layers not working as expected More details: https://issues.qgis.org/issues/19636#note-13 Projects and layers to test the bugs: https://issues.qgis.org/attachments/download/13196/test_filter_qgis.zip
- Loading branch information
1 parent
9710c18
commit 05fda10
Showing
2 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters