Re: BUG #15751: Unexpected behaviour at plainto_tsquery funciton

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: BUG #15751: Unexpected behaviour at plainto_tsquery funciton
Дата
Msg-id CD777B0C-3530-4B7F-B781-BCF1EB72D63B@pivotal.io
обсуждение исходный текст
Ответ на BUG #15751: Unexpected behaviour at plainto_tsquery funciton  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
> On 13 Apr 2019, at 23:11, PG Bug reporting form <noreply@postgresql.org> wrote:

>
> My query is like this :
> .......
> WHERE to_tsvector(COALESCE("blog"."name" )) @@ (plainto_tsquery("cat")) =
> true
>
> That is, I am searching for the word "cat" in name column. But the following
> error is given. Why is    plainto_tsquery is looking for a column name?
>                                                             ^

Quoted strings become SQL identifiers, what you want to do is using single
quotes in order to make it a string: 'cat'

cheers ./daniel




В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15751: Unexpected behaviour at plainto_tsquery funciton
Следующее
От: Sandeep Thakkar
Дата:
Сообщение: Re: Error occurred when i install in my pc.