-
Notifications
You must be signed in to change notification settings - Fork 129
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
Syntax error in tsquery #219
Comments
Thanks for the report. This should now be fixed in master. There's also now an aggressive test case for all sorts of query parameters. Please let me know if it works for you. |
For sure, no more Syntax error when using |
No worries. Release 1.4.3 is out with the fix!
…On 27 September 2017 at 10:35, Antoine Lorence ***@***.***> wrote:
For sure, no more Syntax error when using < or > in search query. Thanks !
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#219 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJFCJIszPS-JmDnUOQcggRyDbpsG6pEks5smhbtgaJpZM4PkENE>
.
|
Wow, it was quick ! Thank you for the reactivity, and keep up the good work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
In a project using django-watson (1.4.2) and Django 1.11.5 with Postgres 9.6.1, a user searched for a contact by email copied from his desktop client. Basically, he pasted this term in the search field of the website:
John Doe <john@provider.com>
This caused an exception when corresponding request was executed. I was able to reproduce the issue with a very simple unit test (py.test):
and got this error:
Apparently, presence of "<" and ">" in the query is the cause of the syntax error. Without these chars, the search obviously run as usual. Currently, I am not sure if this specific chars should be catched and removed by me, by django-watson, or by Django itself (or maybe by Postgres ?).
What is your opinion ?
The text was updated successfully, but these errors were encountered: