Re: BUG #1922: bit string of calculated length

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1922: bit string of calculated length
Дата
Msg-id 20497.1128089496@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1922: bit string of calculated length  ("Sorin Schwimmer" <sxn02@yahoo.com>)
Список pgsql-bugs
"Sorin Schwimmer" <sxn02@yahoo.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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Søren Vainio"
Дата:
Сообщение: BUG #1925: upper() and lower() fails with non-english char.
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: BUG #1926: /etc/init.d/postgresql - script version 7.4.5