Re: Non-decimal integer literals

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Non-decimal integer literals
Дата
Msg-id 202201251843.ajn72lsfpt36@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Non-decimal integer literals  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: Non-decimal integer literals  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 2022-Jan-24, Peter Eisentraut wrote:

> +decinteger        {decdigit}(_?{decdigit})*
> +hexinteger        0[xX](_?{hexdigit})+
> +octinteger        0[oO](_?{octdigit})+
> +bininteger        0[bB](_?{bindigit})+

I think there should be test cases for literals that these seemingly
strange expressions reject, which are a number with trailing _ (0x123_),
and one with consecutive underscores __ (0x12__34).

I like the idea of these literals.  I would have found them useful on
many occassions.

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Non-decimal integer literals
Следующее
От: Robert Haas
Дата:
Сообщение: Re: CREATEROLE and role ownership hierarchies