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
Is your feature request related to a problem? Please describe.
I MUST use this kind of condition in PHQL:
to_tsvector('English', cast(client_data_original as TEXT)) @@ plainto_tsquery('English', ':cdo_ftxt:')
There are two problems:
Phalcon doesn't recognize parameters in functions, so I can't use
plainto_tsquery('English', ':cdo_ftxt:')
I need to set explicit value without parametrizing it, like this:
plainto_tsquery('English', 'John Smith')
Second more serious problem is, that PHQL doesn't recognize @@ expression, instead I can use function ts_match_vq, but after that, PostgreSQL is not using Fulltext index like it is using with @@ expression, so I really need PHQL to recognize @@ expression.
How can I modify PostgreSQL dialect in Phalcon source code to recognize such expressions?
Describe the solution you'd like
It would be ideal if we have way to register custom expressions to any dialect in similar way to register functions via registerCustomFunction method.
For example in PostgreSQL there are many very useful expressions to work with jsonb data type like: "|&>", "@>", "#>" etc. Currently I can't use them and it hurts.
Fixing those two problem would level up Phalcon ORM to higher level.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I MUST use this kind of condition in PHQL:
to_tsvector('English', cast(client_data_original as TEXT)) @@ plainto_tsquery('English', ':cdo_ftxt:')
There are two problems:
plainto_tsquery('English', ':cdo_ftxt:')
I need to set explicit value without parametrizing it, like this:
plainto_tsquery('English', 'John Smith')
How can I modify PostgreSQL dialect in Phalcon source code to recognize such expressions?
Describe the solution you'd like
It would be ideal if we have way to register custom expressions to any dialect in similar way to register functions via registerCustomFunction method.
For example in PostgreSQL there are many very useful expressions to work with jsonb data type like: "|&>", "@>", "#>" etc. Currently I can't use them and it hurts.
Fixing those two problem would level up Phalcon ORM to higher level.
The text was updated successfully, but these errors were encountered: