From: sad <sad@bankir.ru>
To: pgsql-sql@postgresql.org
Subject: casting int to bit
Date: Fri, 11 Jun 2004 11:32:58 +0400
Message-ID: <200406111132.58908.sad@bankir.ru> (raw)
PLEASE NOTE :
select 1::int8::bit(64);
0000000000000000000000000000000000000000000000000000000000000001
select 1::int4::bit(64);
0000000000000000000000000000000100000000000000000000000000000000
select 1::int2::bit(64);
ERROR: Cannot cast type smallint to bit
the last is a great surprise for me !
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sad@bankir.ru
Subject: Re: casting int to bit
In-Reply-To: <200406111132.58908.sad@bankir.ru>
* 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