pgsql: Reject trailing junk after numeric literals

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Reject trailing junk after numeric literals
Дата
Msg-id E1nKGuh-0004Iz-Ph@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Reject trailing junk after numeric literals

After this, the PostgreSQL lexers no longer accept numeric literals
with trailing non-digits, such as 123abc, which would be scanned as
two tokens: 123 and abc.  This is undocumented and surprising, and it
might also interfere with some extended numeric literal syntax being
contemplated for the future.

Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2549f0661bd28571d7200d6f82f752a7ee5d47e1

Modified Files
--------------
src/backend/parser/scan.l                | 37 +++++++++------
src/fe_utils/psqlscan.l                  | 31 +++++++------
src/interfaces/ecpg/preproc/pgc.l        | 36 ++++++++++-----
src/test/regress/expected/numerology.out | 77 ++++++++++++--------------------
src/test/regress/sql/numerology.sql      |  1 -
5 files changed, 96 insertions(+), 86 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: pgsql: Split xlog.c into xlog.c and xlogrecovery.c.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix read beyond buffer bug introduced by the split xlog.c patch.