Skip to content

Parse expression-valued LIKE ESCAPE clauses - #2476

Merged
iffyio merged 1 commit into
apache:mainfrom
lovasoa:fix/escape-expression
Sep 7, 2026
Merged

Parse expression-valued LIKE ESCAPE clauses#2476
iffyio merged 1 commit into
apache:mainfrom
lovasoa:fix/escape-expression

Conversation

@lovasoa

@lovasoa lovasoa commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Repro:

SELECT 'a%' LIKE 'a#%' ESCAPE ('' || '#')

SQLite accepts this, but sqlparser currently rejects the ESCAPE operand as a non-value.

Parse and store ESCAPE as an expression so supported expression-valued clauses are representable.

@lovasoa
lovasoa marked this pull request as ready for review September 1, 2026 20:48

@iffyio iffyio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @lovasoa!

@iffyio
iffyio added this pull request to the merge queue Sep 7, 2026
Merged via the queue into apache:main with commit bd0f36f Sep 7, 2026
10 checks passed
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.

2 participants