Re: character and text comparison

Поиск
Список
Период
Сортировка
От Jacek Rembisz
Тема Re: character and text comparison
Дата
Msg-id 20040915174947.GA7646@melina.szuwary.org
обсуждение исходный текст
Ответ на Re: character and text comparison  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Wed, Sep 15, 2004 at 12:43:11PM -0400, Tom Lane wrote:
> Jacek Rembisz <jr178783@zodiac.mimuw.edu.pl> writes:
> > When I run  SELECT ' '::character = ' '::text;
> > on PostgreSQL 7.4 the result is `false'
> > while on 7.3 and 7.2 instalations result is `true'
>
> > Is this an intentional change?
>
> Yes.
>
> We now strip trailing blanks when converting a char(n) value to text.

Thank you for a quick answer.

I have changed my application to use text type instead of character type.

best regards,
Jacek Rembisz

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: BUG #1252: Optimization of SELECT for NOT NULL case
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1252: Optimization of SELECT for NOT NULL case