caub / pg-tsquery

:mag: Parse user input into a valid PostgreSQL tsquery
https://caub.github.io/pg-tsquery
58 stars 8 forks source link

Do not work well with Postgres 13 #12

Closed blasterpistol closed 3 years ago

blasterpistol commented 3 years ago

If use 'abs as input and pass it to pg-tsquery, the output will be the same 'abs, then pass it to to_tsquery() and postgres 13 will complain ERROR: syntax error in tsquery: "'abs". Queries as ', 'b, abs&'s and maybe some others will also throw an error.

caub commented 3 years ago

Thanks for reporting, will check it

caub commented 3 years ago

Fixed ^, feel free to reopen if any problem