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

Fix boolean filtering in QGIS expressions with WFS layers #60075

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

Djedouas
Copy link
Member

@Djedouas Djedouas commented Jan 7, 2025

Description

PR #56369 introduced a regression for WFS layers, because stopping using 'false' and 'true' strings to compare with boolean fields in QGIS expressions, and forcing to use the keywords false and true, it conflicted with the internal SQLite cache database of WFS layers.

This PR fixes it by storing internal boolean in SQLite cache database in the right form, compatible with QGIS internal functions (i.e. storing '0' and '1' strings instead of 'true' and 'false' strings).

PR qgis#56369 introduced a regression for WFS layers, because stopping using
'false' and 'true' strings to compare with boolean fields in qgis
expressions, and forcing to use the keywords false and true, it
conflicted with the internal SQLite cache database of WFS layers.

This PR fixes it by storing internal boolean in SQLite cache database in
the right form compatible with QGIS internal functions (i.e. storing '0'
and '1' strings instead of 'true' and 'false' strings).
@github-actions github-actions bot added this to the 3.42.0 milestone Jan 7, 2025
@Djedouas Djedouas changed the title Sqlite boolean Fix boolean filtering in qgis expressions with WFS layers Jan 7, 2025
@Djedouas Djedouas changed the title Fix boolean filtering in qgis expressions with WFS layers Fix boolean filtering in QGIS expressions with WFS layers Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 4c70a7f)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 4c70a7f)

@rouault rouault merged commit c45551b into qgis:master Jan 7, 2025
31 checks passed
JanCaha pushed a commit to JanCaha/QGIS that referenced this pull request Jan 8, 2025
PR qgis#56369 introduced a regression for WFS layers, because stopping using
'false' and 'true' strings to compare with boolean fields in qgis
expressions, and forcing to use the keywords false and true, it
conflicted with the internal SQLite cache database of WFS layers.

This PR fixes it by storing internal boolean in SQLite cache database in
the right form compatible with QGIS internal functions (i.e. storing '0'
and '1' strings instead of 'true' and 'false' strings).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants