Skip to content
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

Expression Engine Parsing #18233

Closed
qgib opened this issue Feb 26, 2014 · 2 comments
Closed

Expression Engine Parsing #18233

qgib opened this issue Feb 26, 2014 · 2 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Feb 26, 2014

Author Name: SF GIS (@digibirdtrek)
Original Redmine Issue: 9666
Affected QGIS version: 2.2.0
Redmine category:expressions


Update breaks expression engine string builder handling of at least conditional statements. This appears to be a parsing error when saving an expression. Discovered when using a conditional expression in the data defined properties of a style.

Example:

CASE WHEN field1 IS NULL THEN field2 ELSE field1 END

Where field1 and field2 are data fields

Once the string is committed, the space before the ELSE is stripped out, rendering the expression invalid.

CASE WHEN field1 IS NULL THEN field2ELSE field1 END

Attempted to double quote the data fields and use multiple lines in the statement, however the double quotes and line feeds are stripped when the expression is committed ending with the same result.

Once the data defined properties window is closed, the expression is removed entirely and replaced with "(no root)" without the quotes.

@qgib
Copy link
Contributor Author

qgib commented Feb 26, 2014

Author Name: SF GIS (@digibirdtrek)


Additional notes. This error impacts existing styles.

@qgib
Copy link
Contributor Author

qgib commented Feb 26, 2014

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "1d84978f8e037459947027ca10cf44d386e83843".


  • status_id was changed from Open to Closed

@qgib qgib added 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 labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant