Thread: bit datatype in 7.2.1

bit datatype in 7.2.1

From
"Joseph Artsimovich"
Date:
Hi,

I've upgraded from 7.1.3 to 7.2.1 and now I'm having problems with
the bit datatype. I used to do '0'::bit(20) to save some typing, but
it does not work anymore:
ERROR:  bit string length does not match type bit(20)

Is there a way to do it in version 7.2.1?


Re: bit datatype in 7.2.1

From
Neil Conway
Date:
On Fri, 26 Apr 2002 13:50:15 +0400
"Joseph Artsimovich" <joseph_a@mail.ru> wrote:
> Hi,
>
> I've upgraded from 7.1.3 to 7.2.1 and now I'm having problems with
> the bit datatype. I used to do '0'::bit(20) to save some typing, but
> it does not work anymore:
> ERROR:  bit string length does not match type bit(20)
>
> Is there a way to do it in version 7.2.1?

Perhaps using BIT VARYING? See section 3.9 of the User's Guide.

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC