diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-06 23:04:22 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-06 23:04:22 +0300 |
commit | 85829c973cb33592dbc0b0f3aaf9132f5dea6953 (patch) | |
tree | 649b55143d540c8f7a17dc6fbc76743ad2276a9e /src/include/utils/jsonfuncs.h | |
parent | 1e35951e71d37ab6716fa55ba399fbe6df4a7417 (diff) |
Make nullSemAction const, add 'const' decorators to related functions
To make it more clear that these should never be modified.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/54c29fb0-edf2-48ea-9814-44e918bbd6e8@iki.fi
Diffstat (limited to 'src/include/utils/jsonfuncs.h')
-rw-r--r-- | src/include/utils/jsonfuncs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/jsonfuncs.h b/src/include/utils/jsonfuncs.h index 93384d900a0..1f14ab7ddfe 100644 --- a/src/include/utils/jsonfuncs.h +++ b/src/include/utils/jsonfuncs.h @@ -41,7 +41,7 @@ typedef text *(*JsonTransformStringValuesAction) (void *state, char *elem_value, extern JsonLexContext *makeJsonLexContext(JsonLexContext *lex, text *json, bool need_escapes); /* try to parse json, and errsave(escontext) on failure */ -extern bool pg_parse_json_or_errsave(JsonLexContext *lex, JsonSemAction *sem, +extern bool pg_parse_json_or_errsave(JsonLexContext *lex, const JsonSemAction *sem, struct Node *escontext); #define pg_parse_json_or_ereport(lex, sem) \ |