Re: text + text

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: text + text
Дата
Msg-id 20041008062558.Q69318@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: text + text  (David Garamond <lists@zara.6.isreserved.com>)
Список pgsql-general
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
Дата:
Сообщение: Re: when to use NULL and when to NOT NULL DEFAULT ''
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: when to use NULL and when to NOT NULL DEFAULT ''