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

WFS/CSW: do not remove single or double quote character in a LIKE filter #6713

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Nov 16, 2022

Previously for a filter foo LIKE '"in double quotes"' or foo LIKE '''in single quotes ''', the surrounding double/single quotes inside the literal strings were removed.

The erroneous behaviour was introduced in 08b1fad where a re-write was done from a hand-made SQL parser to using the OGR SQL one, but the code to deal with literal quoting should have been removed.

Fixes https://lists.osgeo.org/pipermail/gdal-dev/2022-November/056447.html

Previously for a filter ``foo LIKE '"in double quotes"'`` or
``foo LIKE '''in single quotes '''``, the surrounding double/single
quotes inside the literal strings were removed.

The erroneous behaviour was introduced in 08b1fad
where a re-write was done from a hand-made SQL parser to using the OGR
SQL one, but the code to deal with literal quoting should have been
removed.

Fixes https://lists.osgeo.org/pipermail/gdal-dev/2022-November/056447.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant