Re: Cast INTEGER to BIT confusion - Mailing list pgsql-general

From Erik Wienhold
Subject Re: Cast INTEGER to BIT confusion
Date
Msg-id 515898094.356558.1692278056903@office.mailbox.org
Whole thread Raw
In response to Re: Cast INTEGER to BIT confusion  (rob stone <floriparob@tpg.com.au>)
List pgsql-general
> On 17/08/2023 14:57 CEST rob stone <floriparob@tpg.com.au> wrote:
>
> It works thus:-
>
> postgres 15.4 =# CREATE TABLE T (c BIT);
> CREATE TABLE
> postgres 15.4 =# insert into T values (B'1');
> INSERT 0 1
> postgres 15.4 =# select * from t;
>  c
> ---
>  1
> (1 row)
>
> See section 9.6 in the doco.

But Markus wrote that he cannot change the CREATE TABLE and INSERT statement.

--
Erik



pgsql-general by date:

Previous
From: rob stone
Date:
Subject: Re: Cast INTEGER to BIT confusion
Next
From: Tom Lane
Date:
Subject: Re: AW: AW: Cast INTEGER to BIT confusion