Re: domain on bit(N) type produces strange results

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: domain on bit(N) type produces strange results
Date: 2004-11-06 17:49:18
Message-ID: 9524.1099763358@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> Kris Jurka <books(at)ejurka(dot)com> writes:
>> Creating a domain on bit(N) doesn't seem to work as expected when casting
>> to the domain type.

> What's going on here is that "7::bit4" is implemented as
> "7::bit::bit(4)", and since 7::bit is taken to mean 7::bit(1),
> the result follows.

I've fixed it to collapse this into a direct "7::bit(4)" coercion.
Thanks for the test case.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-11-06 23:10:17 Re: could not find /usr/local/timezone
Previous Message Stephan Szabo 2004-11-06 15:59:56 Re: BUG #1307: Possible bug inheritance/referential integrity