Re: Substring auto trim

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Substring auto trim
Дата
Msg-id 4B4DAC9C020000250002E445@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Substring auto trim  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Substring auto trim  ("Charles O'Farrell" <charleso@gmail.com>)
Список pgsql-bugs
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:

>> This looks like another situation where we're running into
>> trouble because of non-standard behavior when people might be
>> expecting something consistent with other products and the
>> explicit language in the standard.
>
> If we were to change that so that 'ab  ' were implicitly typed as
> char(4), then we'd start getting bug reports from people
> complaining that "select 'ab' = 'ab  '" yields true.  I remain of
> the opinion that char(n) is so hopelessly brain-damaged that we
> should be very careful to NOT bring it into our mainstream
> behavior.

I'm inclined to agree with you, but it does present a barrier to
those migrating.  Are there any "migration considerations" documents
where we should mention this?  Standards compliance notes in the
docs?  Some form of this question seems to be asked frequently....

-Kevin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Substring auto trim
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Termination When Switching between PL/Perl and PL/PerlU