pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Wienhold <ewie@ewie.name>
To: rob stone <floriparob@tpg.com.au>
To: [Quipsy] Markus Karg <karg@quipsy.de>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Cast INTEGER to BIT confusion
Date: Thu, 17 Aug 2023 15:14:16 +0200 (CEST)
Message-ID: <515898094.356558.1692278056903@office.mailbox.org> (raw)
In-Reply-To: <4489a1c28b0d5733ff29332b168b1b62fa75994c.camel@tpg.com.au>
References: <fbc716336d544e93b6af5e11af3e4aa0@quipsy.de>
	<4489a1c28b0d5733ff29332b168b1b62fa75994c.camel@tpg.com.au>

> 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





view thread (6+ messages)  latest in thread

Message-ID: <515898094.356558.1692278056903@office.mailbox.org>
Permalink:  ../515898094.356558.1692278056903@office.mailbox.org/
Also on:    postgresql.org/message-id/515898094.356558.1692278056903@office.mailbox.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ewie@ewie.name, floriparob@tpg.com.au, karg@quipsy.de
  Subject: Re: Cast INTEGER to BIT confusion
  In-Reply-To: <515898094.356558.1692278056903@office.mailbox.org>
  References: <fbc716336d544e93b6af5e11af3e4aa0@quipsy.de> <4489a1c28b0d5733ff29332b168b1b62fa75994c.camel@tpg.com.au> <515898094.356558.1692278056903@office.mailbox.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox