postgresql/src/backend/utils/adt
Peter Eisentraut 6fcda9aba8 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
2022-12-14 06:17:07 +01:00
..
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
acl.c Add grantable MAINTAIN privilege and pg_maintain role. 2022-12-13 17:33:28 -08:00
amutils.c Fix incorrect uses of Datum conversion macros 2022-09-05 13:30:44 +02:00
array_expanded.c
array_selfuncs.c
array_typanalyze.c Rename shadowed local variables 2022-10-05 21:01:41 +13:00
array_userfuncs.c
arrayfuncs.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
arraysubs.c
arrayutils.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
ascii.c
bool.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
cash.c
char.c Change type "char"'s I/O format for non-ASCII characters. 2022-08-02 10:29:35 -04:00
cryptohashfuncs.c
date.c Convert datetime input functions to use "soft" error reporting. 2022-12-09 16:07:49 -05:00
datetime.c Convert datetime input functions to use "soft" error reporting. 2022-12-09 16:07:49 -05:00
datum.c
dbsize.c Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
domains.c Convert domain_in to report errors softly. 2022-12-11 12:56:54 -05:00
encode.c
enum.c
expandeddatum.c
expandedrecord.c
float.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
format_type.c Revert SQL/JSON features 2022-09-01 17:07:14 -04:00
formatting.c Restructure soft-error handling in formatting.c. 2022-12-09 20:15:56 -05:00
genfile.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
geo_ops.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
geo_selfuncs.c
geo_spgist.c
hbafuncs.c Add support for file inclusions in HBA and ident configuration files 2022-11-24 13:51:34 +09:00
inet_cidr_ntop.c
inet_net_pton.c
int8.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
int.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
json.c Convert json_in and jsonb_in to report errors softly. 2022-12-11 11:28:15 -05:00
jsonb_gin.c Fix jsonb subscripting to cope with toasted subscript values. 2022-12-12 16:17:54 -05:00
jsonb_op.c Fix jsonb subscripting to cope with toasted subscript values. 2022-12-12 16:17:54 -05:00
jsonb_util.c Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
jsonb.c Convert json_in and jsonb_in to report errors softly. 2022-12-11 11:28:15 -05:00
jsonbsubs.c
jsonfuncs.c Fix jsonb subscripting to cope with toasted subscript values. 2022-12-12 16:17:54 -05:00
jsonpath_exec.c Restructure soft-error handling in formatting.c. 2022-12-09 20:15:56 -05:00
jsonpath_gram.y Suppress variable-set-but-not-used warnings from clang 15. 2022-09-20 12:04:37 -04:00
jsonpath_internal.h Build all Flex files standalone 2022-09-04 12:09:01 +07:00
jsonpath_scan.l Harmonize more lexer function parameter names. 2022-09-22 13:27:16 -07:00
jsonpath.c Revert SQL/JSON features 2022-09-01 17:07:14 -04:00
levenshtein.c Further -Wshadow=compatible-local warning fixes 2022-08-24 22:04:28 +12:00
like_match.c
like_support.c Defend against stack overrun in a few more places. 2022-08-24 13:02:19 -04:00
like.c Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
lockfuncs.c Replace many MemSet calls with struct initialization 2022-07-16 08:50:49 +02:00
mac8.c
mac.c
Makefile Build all Flex files standalone 2022-09-04 12:09:01 +07:00
mcxtfuncs.c Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
misc.c Add test scaffolding for soft error reporting from input functions. 2022-12-09 10:08:44 -05:00
multirangetypes_selfuncs.c
multirangetypes.c Fix incorrect uses of Datum conversion macros 2022-09-05 13:30:44 +02:00
name.c Add construct_array_builtin, deconstruct_array_builtin 2022-07-01 11:23:15 +02:00
network_gist.c
network_selfuncs.c
network_spgist.c
network.c Remove configure probe for sockaddr_in6 and require AF_INET6. 2022-08-26 10:18:30 +12:00
numeric.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
numutils.c Non-decimal integer literals 2022-12-14 06:17:07 +01:00
oid.c
oracle_compat.c Avoid ERRCODE_INTERNAL_ERROR in oracle_compat.c functions. 2022-05-26 12:25:10 -04:00
orderedsetaggs.c Allow nodeSort to perform Datum sorts for byref types 2022-10-28 09:25:12 +13:00
partitionfuncs.c Rename shadowed local variables 2022-10-05 21:01:41 +13:00
pg_locale.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
pg_lsn.c Fix incorrect uses of Datum conversion macros 2022-09-05 13:30:44 +02:00
pg_upgrade_support.c Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
pgstatfuncs.c Fix macro definitions in pgstatfuncs.c 2022-12-10 13:28:02 +09:00
pseudotypes.c Use the macro, not handwritten code, to construct anymultirange_in(). 2022-12-10 17:22:16 -05:00
quote.c
rangetypes_gist.c Remove unnecessary uses of Abs() 2022-10-07 13:29:33 +02:00
rangetypes_selfuncs.c
rangetypes_spgist.c Fix incorrect uses of Datum conversion macros 2022-09-05 13:30:44 +02:00
rangetypes_typanalyze.c Invent qsort_interruptible(). 2022-07-12 16:30:36 -04:00
rangetypes.c Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
regexp.c Consistently use named parameters in regex code. 2022-09-19 15:10:24 -07:00
regproc.c
ri_triggers.c Rework query relation permission checking 2022-12-06 16:09:24 +01:00
rowtypes.c Convert a few datatype input functions to use "soft" error reporting. 2022-12-09 10:14:53 -05:00
ruleutils.c Fix psql's \sf and \ef for new-style SQL functions. 2022-12-02 14:24:44 -05:00
selfuncs.c Re-pgindent a few files. 2022-12-04 14:25:53 -05:00
tid.c
timestamp.c Convert datetime input functions to use "soft" error reporting. 2022-12-09 16:07:49 -05:00
trigfuncs.c
tsginidx.c
tsgistidx.c Standardize error reports in unimplemented I/O functions. 2022-12-10 18:26:43 -05:00
tsquery_cleanup.c
tsquery_gist.c
tsquery_op.c Fix incorrect uses of Datum conversion macros 2022-09-05 13:30:44 +02:00
tsquery_rewrite.c
tsquery_util.c
tsquery.c Introduce t_isalnum() to replace t_isalpha() || t_isdigit() tests. 2022-10-06 11:08:56 -04:00
tsrank.c Remove unnecessary uses of Abs() 2022-10-07 13:29:33 +02:00
tsvector_op.c Add comments and a missing CHECK_FOR_INTERRUPTS in ts_headline. 2022-11-21 17:07:29 -05:00
tsvector_parser.c
tsvector.c
uuid.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
varbit.c
varchar.c Fix broken hash function hashbpcharextended(). 2022-12-02 14:06:31 -08:00
varlena.c Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
version.c
windowfuncs.c Teach planner and executor about monotonic window funcs 2022-04-08 10:34:36 +12:00
xid8funcs.c Fix visibility check when XID is committed in CLOG but not in procarray. 2022-06-27 08:21:08 +03:00
xid.c
xml.c Clean up some inconsistencies with GUC declarations 2022-10-31 12:44:48 +09:00