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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 60684dd) | patch
Non-decimal integer literals
2022年12月14日 04:40:38 +0000 (05:40 +0100)
2022年12月14日 05:17:07 +0000 (06:17 +0100)
commit 6fcda9aba83449082124825b6d375c0a61e21c42
Non-decimal integer literals

Add support for hexadecimal, octal, and binary integer literals:

0x42F
0o273
0b100101

per SQL:202x draft.

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

Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Reviewed-by: Zhihong Yu <zyu@yugabyte.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com
16 files changed:
doc/src/sgml/syntax.sgml diff | blob | blame | history
src/backend/catalog/information_schema.sql diff | blob | blame | history
src/backend/catalog/sql_features.txt diff | blob | blame | history
src/backend/parser/parse_node.c diff | blob | blame | history
src/backend/parser/scan.l diff | blob | blame | history
src/backend/utils/adt/numutils.c 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/int2.out diff | blob | blame | history
src/test/regress/expected/int4.out diff | blob | blame | history
src/test/regress/expected/int8.out diff | blob | blame | history
src/test/regress/expected/numerology.out diff | blob | blame | history
src/test/regress/sql/int2.sql diff | blob | blame | history
src/test/regress/sql/int4.sql diff | blob | blame | history
src/test/regress/sql/int8.sql diff | blob | blame | history
src/test/regress/sql/numerology.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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