Search Postgresql Archives

Re: function bit(integer)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Samer Abukhait <abukhait@xxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux