Non-decimal integer literals

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Non-decimal integer literals
Дата
Msg-id b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com
обсуждение исходный текст
Ответы Re: Non-decimal integer literals  (John Naylor <john.naylor@enterprisedb.com>)
Re: Non-decimal integer literals  (Vik Fearing <vik@postgresfriends.org>)
Re: Non-decimal integer literals  (Christoph Berg <myon@debian.org>)
Список pgsql-hackers
Here is a patch to add support for hexadecimal, octal, and binary 
integer literals:

     0x42E
     0o112
     0b100101

per SQL:202x draft.

This adds support in the lexer as well as in the integer type input 
functions.

Those core parts are straightforward enough, but there are a bunch of 
other places where integers are parsed, and one could consider in each 
case whether they should get the same treatment, for example the 
replication syntax lexer, or input function for oid, numeric, and 
int2vector.  There are also some opportunities to move some code around, 
for example scanint8() could be in numutils.c.  I have also looked with 
some suspicion at some details of the number lexing in ecpg, but haven't 
found anything I could break yet.  Suggestions are welcome.

Вложения

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

Предыдущее
От: Wenjing
Дата:
Сообщение: Is it worth pushing conditions to sublink/subplan?
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: ECPG bug fix: DECALRE STATEMENT and DEALLOCATE, DESCRIBE