Weird 'bit' type behaviour

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Weird 'bit' type behaviour
Date: 2004-06-14 03:04:03
Message-ID: 40CD15A3.4030005@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there any reason for this behaviour:

test=# select 1::bit;
bit
-----
0
(1 row)

test=# select '1'::bit;
bit
-----
1
(1 row)

Chris

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-06-14 03:10:15 Other bit oddities
Previous Message Oliver Jowett 2004-06-14 02:01:00 Re: Delaying the planning of unnamed statements until Bind