Re: BUG #1922: bit string of calculated length

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sorin Schwimmer" <sxn02(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1922: bit string of calculated length
Date: 2005-09-30 14:11:36
Message-ID: 20497.1128089496@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Sorin Schwimmer" <sxn02(at)yahoo(dot)com> writes:
> When puting in an expression something like
> '0'::BIT(20-LENGTH(something_here))
> I receive an error message suggesting that integer arithmetic is not allowed
> in a BIT declaration.

Yup, you're right.

> I'd like to suggest to allow for any expression that converts to positive
> integer.

Don't hold your breath. This is not required by the SQL spec and it
seems much more difficult to implement than it's worth.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Devrim GUNDUZ 2005-09-30 14:16:04 Re: BUG #1926: /etc/init.d/postgresql - script version 7.4.5
Previous Message Till Toenges 2005-09-30 13:38:47 BUG #1928: Postgresql is terminated by signal 10 (bus error) when using prepared statements