postgresql-parser icon indicating copy to clipboard operation
postgresql-parser copied to clipboard

at or near "@": syntax error

Open localhosted opened this issue 2 years ago • 3 comments

How can I add ts_vector query support?

It's choking on WHERE to_tsvector(unaccent(name)) @@ to_tsquery('portuguese', ':*')

localhosted avatar Feb 22 '22 12:02 localhosted

Can you provide the full SQL? Which database and version does this SQL run on?

auxten avatar Feb 22 '22 14:02 auxten

It's from the extension pg_trgm

Runs on postgres 9.6+

SELECT
	* 
FROM
	movies 
WHERE
	to_tsvector( unaccent ( NAME ) ) @@to_tsquery( 'portuguese', 'star:*' )

localhosted avatar Feb 22 '22 18:02 localhosted