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

Fix for PG::SyntaxError: ERROR: syntax error at or near ")" #192

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

campbecf
Copy link
Contributor

This is somewhat related to the fix I had done in #137 .

It was triggered by running something like Model.search_by_plaintext(:full, '123').count

Caused by PG::SyntaxError: ERROR:  syntax error at or near ")"
LINE 1: AND NOT (TRIM(BOTH FROM full) = '')

Some details were removed from the above error. This change appears to fix the issue.

@jmazzi jmazzi merged commit 933cdd9 into jmazzi:master Dec 30, 2021
@jmazzi
Copy link
Owner

jmazzi commented Dec 30, 2021

Released as v2.3.0

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

Successfully merging this pull request may close these issues.

None yet

2 participants