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

Unbalanced quotation breaks the search #84

Closed
tvuotila opened this issue Jul 4, 2019 · 1 comment
Closed

Unbalanced quotation breaks the search #84

tvuotila opened this issue Jul 4, 2019 · 1 comment

Comments

@tvuotila
Copy link
Collaborator

tvuotila commented Jul 4, 2019

Odd number of quotation marks breaks the search.
For example,search(query, 'star or "') raises exception:

no operand in tsquery: "'star':* | "
CONTEXT:  PL/pgSQL function tsq_process_tokens(regconfig,text[]) line 40 at RETURN
SQL function "tsq_parse" statement 1

Search queries are from the users, so we cannot control them.

@tvuotila
Copy link
Collaborator Author

tvuotila commented Jul 4, 2019

Running the expressions.sql fixed the problem.

@tvuotila tvuotila closed this as completed Jul 4, 2019
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

1 participant