Re: function bit(integer)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: function bit(integer)
Дата
Msg-id 763.1116192829@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: function bit(integer)  (Samer Abukhait <abukhait@gmail.com>)
Список pgsql-general
Samer Abukhait <abukhait@gmail.com> writes:
> select "bit"(1);
> ERROR:  function bit(integer) does not exist

Try
    select 1::bit(32);
or if you prefer
    select cast(1 as bit(32));

What you have above is essentially a direct invocation of the int-to-bit
cast function; which you can do if you like, but it's deprecated for
precisely the reason that we don't promise it'll remain stable.

            regards, tom lane

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

Предыдущее
От: Samer Abukhait
Дата:
Сообщение: Re: function bit(integer)
Следующее
От: tony
Дата:
Сообщение: date problem