| От | Vik Fearing |
|---|---|
| Тема | Re: Non-decimal integer literals |
| Дата | |
| Msg-id | abb04ce4-a6b8-1c95-fa16-dc87e851e106@postgresfriends.org обсуждение |
| Ответ на | Non-decimal integer literals (Peter Eisentraut <peter.eisentraut@enterprisedb.com>) |
| Ответы |
Re: Non-decimal integer literals
|
| Список | pgsql-hackers |
On 8/16/21 11:51 AM, Peter Eisentraut wrote: > Here is a patch to add support for hexadecimal, octal, and binary > integer literals: > > 0x42E > 0o112 > 0b100101 > > per SQL:202x draft. Is there any hope of adding the optional underscores? I see a potential problem there as SELECT 1_a; is currently parsed as SELECT 1 AS _a; when it should be parsed as SELECT 1_ AS a; or perhaps even as an error since 0x1_a would be a valid number with no alias. (The standard does not allow identifiers to begin with _ but we do...) -- Vik Fearing
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера