SQL parser doesn't support boolean expressions #7465

Closed
opened 2026-01-22 15:52:03 +01:00 by admin · 0 comments
Owner

Originally created by @speller on GitHub (Jan 22, 2025).

I'm trying to create a custom function that will take a boolean expression but I can't do that. When I use my function as FUNC(table.field) - it works fine. But when I use it as FUNC(NOT table.field), none of the parser methods can parse and understand it. The closest method SimpleConditionalExpression expects a comparison operator. How to fix this issue?

Originally created by @speller on GitHub (Jan 22, 2025). I'm trying to create a custom function that will take a boolean expression but I can't do that. When I use my function as `FUNC(table.field)` - it works fine. But when I use it as `FUNC(NOT table.field)`, none of the parser methods can parse and understand it. The closest method `SimpleConditionalExpression` expects a comparison operator. How to fix this issue?
admin closed this issue 2026-01-22 15:52:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7465