Re: Error in SELECT clause with UPPER function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error in SELECT clause with UPPER function
Дата
Msg-id 2272.1037398720@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Error in SELECT clause with UPPER function  ("Pascal Rempenault" <prempenault@hubwoo.com>)
Список pgsql-general
"Pascal Rempenault" <prempenault@hubwoo.com> writes:
> track=# select loginname, upper(loginname) from tperson where
> upper(loginname)='ADMIN';
>  loginname | upper
> -----------+-------
> (0 rows)

I'm guessing that there are trailing blanks in loginname (possibly
because it's declared char(n) rather than varchar(n)).  The result
of upper() is always of type text, so comparison to it treats the
trailing blanks as significant.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: manipuliation the pg_shadow table
Следующее
От: Stephan Szabo
Дата:
Сообщение: Fwd: [HACKERS] RI_FKey_check: foreign key constraint blocks parallel