Re: trailing junk in numeric literals

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: trailing junk in numeric literals
Дата
Msg-id 4f6f8aac-d898-0bee-2d1f-654e6c648b5f@postgresfriends.org
обсуждение исходный текст
Ответ на Re: trailing junk in numeric literals  (Andreas Karlsson <andreas@proxel.se>)
Ответы Re: trailing junk in numeric literals  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 1/16/21 4:32 PM, Andreas Karlsson wrote:
> On 1/16/21 2:02 PM, Vik Fearing wrote:
>> I am in favor of such a change so that we can also accept 1_000_000
>> which currently parses as "1 AS _000_000" (which also isn't compliant
>> because identifiers cannot start with an underscore, but I don't want to
>> take it that far).
>>
>> It would also allow us to have 0xdead_beef, 0o_777, and 0b1010_0000_1110
>> without most of it being interpreted as an alias.
> 
> That would be a nice feature. Is it part of the SQL standard?

Yes, all of that is in the standard.
-- 
Vik Fearing



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: PoC/WIP: Extended statistics on expressions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Alter timestamp without timezone to with timezone rewrites rows