domain on bit(N) type produces strange results - Mailing list pgsql-bugs

From Kris Jurka
Subject domain on bit(N) type produces strange results
Date
Msg-id Pine.BSO.4.56.0411060026120.10337@leary.csoft.net
Whole thread Raw
Responses Re: domain on bit(N) type produces strange results
List pgsql-bugs
Creating a domain on bit(N) doesn't seem to work as expected when casting
to the domain type.

CREATE DOMAIN bit4 AS bit(4);

SELECT 7::bit(4), 7::bit4;
 bit  | bit4
------+------
 0111 | 1000
(1 row)


Reported in #postgresql by msw_alt.

Kris Jurka

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1306: locale related issue.
Next
From: Tom Lane
Date:
Subject: Re: domain on bit(N) type produces strange results