Re: Bug in concat operator for Char? -- More Info

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Bug in concat operator for Char? -- More Info
Дата
Msg-id 20040721075621.T61440@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Bug in concat operator for Char? -- More Info  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Bug in concat operator for Char? -- More Info  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Wed, 21 Jul 2004, Tom Lane wrote:

> Josh Berkus <josh@agliodbs.com> writes:
> > Are these changes intentional,
>
> Yes.  We've been moving more and more steadily towards the notion that
> trailing spaces in char(n) values are insignificant noise.  If you think
> that trailing spaces are significant, you shouldn't be using char(n)
> to store them.

Well, the problem here is that technically we're returning the wrong type.
We should be returning a char(l1+l2) rather than a text for a char
concatenate, but similarly to the recent complaint about numerics, we
don't really have a fully proper way to do that and it seems non-trivial.

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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: Bug in concat operator for Char? -- More Info
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in concat operator for Char? -- More Info