Re: hex integer input

Поиск
Список
Период
Сортировка
От Jeremy Drake
Тема Re: hex integer input
Дата
Msg-id Pine.BSO.4.64.0703012345540.18849@resin.csoft.net
обсуждение исходный текст
Ответ на Re: hex integer input  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы xlogViewer / xlogdump  ("Vishal Arora" <aroravishal22@hotmail.com>)
Список pgsql-hackers
On Fri, 2 Mar 2007, Tom Lane wrote:

> Jeremy Drake <pgsql@jdrake.com> writes:
> > On several occasions I have wanted to input integers in hexadecimal rather
> > than in decimal in PostgreSQL.  I notice that there is a to_hex function,
> > but there is not (AFAIK) a way to provide an integer in hexadecimal.
>
> regression=# select x'abcd'::int;
>  int4
> -------
>  43981
> (1 row)

Hmm.  I actually used the bit(N) type on a project quite some time ago,
but it did not occur to me to use the bit string input syntax to input an
integer.

Well, I guess there is a way after all.  So in the immortal words of Emily
Litella, "Never mind."


-- 
In an organization, each person rises to the level of his own
incompetency    -- The Peter Principle


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: hex integer input
Следующее
От: "Vishal Arora"
Дата:
Сообщение: xlogViewer / xlogdump