Re: implicit casting bug or feature?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: implicit casting bug or feature?
Дата
Msg-id 2681.1195140812@sss.pgh.pa.us
обсуждение исходный текст
Ответ на implicit casting bug or feature?  (Kristo Kaiv <kristo.kaiv@skype.net>)
Список pgsql-general
Kristo Kaiv <kristo.kaiv@skype.net> writes:
> During development i stumbled upon a strange behaviour in 8.2.4
> ...
> Why is this still blank padded? Shouldn't a character(20) -> text
> conversion
> happen implicitly when the value is selected into the return type
> that is declared as text?

No, that's not how plpgsql deals with forced type conversions.
Its method is always "run the source type's output function, then
feed that to the destination type's input function".  In some cases
that will yield different behavior than a SQL cast.

            regards, tom lane

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Compiled debugger plug in for windows, any one have it?
Следующее
От: "Pau Marc Munoz Torres"
Дата:
Сообщение: moving from mysql to postgree