Expression editor: syntax check fails if table is empty #37100
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Expressions
Related to the QGIS expression engine or specific expression functions
Regression
Something which used to work, but doesn't anymore
Describe the bug
![image](https://user-images.githubusercontent.com/884476/84268289-b5c6cb80-ab27-11ea-93bf-5308961a8fb6.png)
When the table is empty - naturally the preview fails - but the syntax check should not fail:
Table has at least one record (syntax check of the exact same expression as before is fine):
![image](https://user-images.githubusercontent.com/884476/84268042-5963ac00-ab27-11ea-8540-3906554fdc73.png)
I would expect the syntax check to also work fine on an empty table.
QGIS and OS versions
Tested in QGIS master (3.13) on Linux Ubuntu 18.04
The text was updated successfully, but these errors were encountered: