Re: range with infinity bound data type disallow extra empty white space.

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: range with infinity bound data type disallow extra empty white space.
Дата
Msg-id CAKFQuwYc4QmbA+XcNszVXUv83pDgbtnWpxeaweTC=9PfGDL3TQ@mail.gmail.com
обсуждение исходный текст
Ответ на range with infinity bound data type disallow extra empty white space.  (jian he <jian.universality@gmail.com>)
Список pgsql-general
On Friday, July 8, 2022, jian he <jian.universality@gmail.com> wrote:
Hi, there.

Not sure this is a bug, or intentional.
select '[10000, )'::int8range; --fail.
select '[10000,)'::int8range; --ok.

tested on pg14.4, pg15.1


It is documented so I’d say intentional.

“Whitespace is allowed before and after the range value, but any whitespace between the parentheses or brackets is taken as part of the lower or upper bound value.”

David J.

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

Предыдущее
От: jian he
Дата:
Сообщение: range with infinity bound data type disallow extra empty white space.
Следующее
От: Igor Korot
Дата:
Сообщение: Get the table creation DDL