git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 70e8186) | patch
Reject trailing junk after numeric literals
2022年2月16日 09:32:36 +0000 (10:32 +0100)
2022年2月16日 09:37:31 +0000 (10:37 +0100)
commit 2549f0661bd28571d7200d6f82f752a7ee5d47e1
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
src/backend/parser/scan.l diff | blob | blame | history
src/fe_utils/psqlscan.l diff | blob | blame | history
src/interfaces/ecpg/preproc/pgc.l diff | blob | blame | history
src/test/regress/expected/numerology.out diff | blob | blame | history
src/test/regress/sql/numerology.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /