Re: length limitation in '=' operator when comparing TEXT fields ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: length limitation in '=' operator when comparing TEXT fields ?
Дата
Msg-id 23370.1022184923@sss.pgh.pa.us
обсуждение исходный текст
Ответ на length limitation in '=' operator when comparing TEXT fields ?  ("Michael Beckstette" <mbeckste@TechFak.Uni-Bielefeld.DE>)
Список pgsql-bugs
"Michael Beckstette" <mbeckste@TechFak.Uni-Bielefeld.DE> writes:
> i have a little problem when selecting entries from a table, specified by a
>  long match on a field of type TEXT. Is there a length limitation for the '='
> operator when comparing a field of type TEXT to a given string ?

No.

> Example:

> SELECT description FROM sequences_33 WHERE description LIKE 'gi 17559974%';
                                                         ^^^^^^^^^^^^^^^^^^^
> [ finds a row ]

> SELECT description FROM sequences_33 WHERE description=' gi 17559974 ref
                                                        ^^^^^^^^^^^^^^^^^
> [ finds no row ]

You seem to think that leading spaces are insignificant.  They are not.

            regards, tom lane

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

Предыдущее
От: "Michael Beckstette"
Дата:
Сообщение: length limitation in '=' operator when comparing TEXT fields ?
Следующее
От: "Michael Beckstette"
Дата:
Сообщение: Re: length limitation in '=' operator when comparing TEXT fields ?