1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-04 20:11:56 +03:00

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
This commit is contained in:
Heikki Linnakangas
2024-08-06 23:04:22 +03:00
parent 1e35951e71
commit 85829c973c
5 changed files with 19 additions and 19 deletions

View File

@@ -514,7 +514,7 @@ static JsonParseErrorType transform_string_values_scalar(void *state, char *toke
* returned when escontext is an ErrorSaveContext).
*/
bool
pg_parse_json_or_errsave(JsonLexContext *lex, JsonSemAction *sem,
pg_parse_json_or_errsave(JsonLexContext *lex, const JsonSemAction *sem,
Node *escontext)
{
JsonParseErrorType result;