Re: text + text

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: text + text
Дата
Msg-id
20041008062558.Q69318@megazone.bigpanda.com
Ответ на
Re: text + text (David Garamond)
Список
Дерево обсуждения
text + text David Garamond <lists@zara.6.isreserved.com>
Re: text + text Peter Eisentraut <peter_e@gmx.net>
Re: text + text David Garamond <lists@zara.6.isreserved.com>
Re: text + text Tom Lane <tgl@sss.pgh.pa.us>
Re: text + text Stephan Szabo <sszabo@megazone.bigpanda.com>
On Fri, 8 Oct 2004, David Garamond wrote:

> Peter Eisentraut wrote:
> >>What is "text + text" supposed to do right now?
> >
> > Nothing.
>
> Then are these bugs? (7.4.5 and 8.0.0beta1 give same results). Frankly,
> the current behaviour is quite strange to me.
>
> ------------------
> =# select coalesce('1'+'0','NULL');
>   a

That isn't text+text.  It's "char"+"char". "char" is a rather bizarre type
being partially 1 byte integer and partially 1 character string and it
causes strange behaviors like the above where I believe it's taking the
first bytes of the '1' and '0' and adding them together. I think Tom was
talking about removing the math operators from it so that things like the
above don't happen.

В списке pgsql-general по дате отправления
От: David Garamond
Дата:
От: Michael Glaesemann
Дата:
FAQ