You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work with PostgreSQL. I implemented custom function for working with array type DQL: CONTAINS(field, '{1,2}')
which should converted into SQL: field @> '{1,2}'
When I was trying to apply with function I got error:
[Syntax Error] line 0, col -1: Error: Expected =, <, <=, <>, >, >=, !=, got end of string.
After digging into the code I found out that parser requires comparison operator also.
I use following workaround: CONTAINS(field,?1) = TRUE
I think we need to implement ability to create custom operators.
The text was updated successfully, but these errors were encountered:
I work with PostgreSQL. I implemented custom function for working with array type
DQL:
CONTAINS(field, '{1,2}')
which should converted into SQL:
field @> '{1,2}'
When I was trying to apply with function I got error:
After digging into the code I found out that parser requires comparison operator also.
I use following workaround:
CONTAINS(field,?1) = TRUE
I think we need to implement ability to create custom operators.
The text was updated successfully, but these errors were encountered: