Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

at or near "@": syntax error #12

Open
localhosted opened this issue Feb 22, 2022 · 4 comments
Open

at or near "@": syntax error #12

localhosted opened this issue Feb 22, 2022 · 4 comments

Comments

@localhosted
Copy link

How can I add ts_vector query support?

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

@auxten
Copy link
Owner

auxten commented Feb 22, 2022

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

@localhosted
Copy link
Author

It's from the extension pg_trgm

Runs on postgres 9.6+

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

@mal-mel
Copy link

mal-mel commented Jun 18, 2024

yeah, i have the similar problem
SELECT * FROM table_name WHERE column1 @@ '$.key == "value"'

@DrakoRod
Copy link

I have the same problem using the tsvector and tsquery syntax

error: could not parse sql string: at or near \"@\": syntax error"

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

No branches or pull requests

4 participants