-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter expression error returns true #34259
Comments
@mathieubossaert I cannot confirm on 3.10.2 on Ubuntu. Can you attach a sample dataset? |
Thanks @gioman
On that shapefile : By the way if this bug does not exist in 3.10 we will upgrade. |
@mathieubossaert if is ok in 3.10 I believe than there will be no fix for 3.4 as 3.10 is becoming very soon the next LTR (not totally sure but there will not be a new 3.4 point release). |
ok Thanks. Let's close this issue. |
Did you try with a shapefile ? I can replicate this issue with any shapefile on master. (3.11) |
@Gustry actually I think I tested with a postGIS layer, if is confirmed in 3.10/master let's reopen. |
this will be the proof for my students of the utility to report issues ;-) |
The feedback label can be removed ;-) |
removed |
This only fixes half the bug, which is when the user presses the test button. One can still click OK with a broken WHERE clause and have all features returned while he should not be able to. The root problem is probably |
What @uclaros said, setSubsetString should return a bool. I guess that this is used to validate the expression and could be used to validate the expression instead of checking the count. |
Should this be reopened or there is already a new ticket? |
Feature request I would say. There's no validation for SQL in code. |
It's a bug in |
Ok, I thought you were talking about validating the SQL syntax before sending it to the provider. |
Hi,
teaching QGIS on 3.4.15 today, we face a bug on MAC and windows (have to try on ubuntu) :
When we create a filter on a layer, if the expression contains an error ( for example a parenthesis not closed), the expression returns true so the layer is not filtered.
The text was updated successfully, but these errors were encountered: