Outputting PostgreSQL's bit type in SQuirreL results in "<Error>"

148 Views Asked by At

When I try to output something as a bitstring (PostgreSQL documentation) in SQuirreL...

SELECT ('1234'::bigint)::bit(16);

I get the following result:

    bit
-------
<Error>

Can this be avoided?

1

There are 1 best solutions below

0
zb226 On BEST ANSWER

It seems the type is not supported by SQuirreL, but adding another cast to varchar works:

SELECT ('1234'::bigint)::bit(16)::varchar;

Output:

varchar         
----------------
0000010011010010