Re: writing own cast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: writing own cast
Дата
Msg-id 4637.1029474562@sss.pgh.pa.us
обсуждение исходный текст
Ответ на writing own cast  (Moritz Sinn <moritz@freesources.org>)
Ответы Re: writing own cast  (Moritz Sinn <moritz@freesources.org>)
Список pgsql-general
Moritz Sinn <moritz@freesources.org> writes:
> but i would like do be able doing the same with integers:
> SELECT 255::hex;
> ... and then getting 'ff'.

> do you know how i can realize that?

Sure, make a function hex(int) returning hex.  The function name
must match the datatype name.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: again: how to synchronize database operations?
Следующее
От: "Ben-Nes Michael"
Дата:
Сообщение: pg_query & pg_last_oid