Re: Char = varchar

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Char = varchar
Дата
Msg-id 20079.1023233666@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Char = varchar  ("Glen Parker" <glenebob@nwlink.com>)
Список pgsql-general
"Glen Parker" <glenebob@nwlink.com> writes:
>   ERROR:  Unable to identify an operator '=' for types 'character' and
> 'character varying'

The reason it's unhappy is that it has no reasonable way to make a
choice between using char and varchar comparison (which are not the
same; the former is insensitive to trailing blanks).  You need a
cast to tell it what to do.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Lost Access To Table
Следующее
От: "Booth, Robert"
Дата:
Сообщение: Re: Lost Access To Table