Re: ascii to character conversion in postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ascii to character conversion in postgres
Дата
Msg-id 6380.969376649@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ascii to character conversion in postgres  (Alex Sokoloff <alex_sokoloff@yahoo.com>)
Список pgsql-hackers
Alex Sokoloff <alex_sokoloff@yahoo.com> writes:
> Of course, if an alias for ichar is carried forward I
> can write code for the current postgres that won't
> break with future releases. I realize that I might end
> up being the only person on the planet who ends up
> using ichar, and that may not be sufficient
> justification for an alias....

Well, we will certainly have chr(), so why not save yourself the
trouble of converting later and make that alias today?

create function chr(int4) returns text as 'ichar'
language 'internal' with (iscachable);

ought to do it in 7.0.*.
        regards, tom lane


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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: Library versioning
Следующее
От: Tom Lane
Дата:
Сообщение: Re: odbc (was: Re: ascii to character conversion in postgres)