Default conversion of type numeric to text in 7.1.3

Поиск
Список
Период
Сортировка
От Gurunandan R. Bhat
Тема Default conversion of type numeric to text in 7.1.3
Дата
Msg-id Pine.LNX.4.33.0111220009180.4964-100000@suman.greenfields.universe
обсуждение исходный текст
Ответы Re: Default conversion of type numeric to text in 7.1.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

    The excellently detailed Postgres manual, seems to indicate that
the concatenation operator "||"  converts the right and left operands of
all base types to text with the exception of boolean which cannot be cast
as any other type. However I find that the conversion of numeric to text
fails with an error mesage indicating that || cannot concatenate text with
numeric.  To make the concatenation work, I am forced to explicity cast
numeric with a text(numeric).

    Is this correct behaviour consistent with the manual? Also, what
special problems prevent the conversion of boolean to text? We could fix
things so that text(boolean)  return the strings TRUE or FALSE depending
on the argument.

Many thanks in advance

Regards,
Gurunandan




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

Предыдущее
От: Antonio Fiol Bonnín
Дата:
Сообщение: Re: first question
Следующее
От: merlyn@stonehenge.com (Randal L. Schwartz)
Дата:
Сообщение: Re: Slightly OT: outer joins