Weird 'bit' type behaviour - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Weird 'bit' type behaviour
Date
Msg-id 40CD15A3.4030005@familyhealth.com.au
Whole thread Raw
Responses Re: Weird 'bit' type behaviour  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Delaying the planning of unnamed statements until Bind
Next
From: Christopher Kings-Lynne
Date:
Subject: Other bit oddities