aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-10-10 07:50:15 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-10-10 07:50:43 +0200
commit1d91d24d9a831be0bb90ec71934f735c52456c57 (patch)
tree47c9ba51a493bb78cf6695fdf815ea15d2ca24f5 /src/backend/utils/adt/json.c
parentfc4089f3c65a5f1b413a3299ba02b66a8e5e37d0 (diff)
downloadpostgresql-1d91d24d9a831be0bb90ec71934f735c52456c57.tar.gz
postgresql-1d91d24d9a831be0bb90ec71934f735c52456c57.zip
Add const to values and nulls arguments
This excludes any changes that would change the external AM APIs. Reviewed-by: Aleksander Alekseev <aleksander@timescale.com> Discussion: https://www.postgresql.org/message-id/flat/14c31f4a-0347-0805-dce8-93a9072c05a5%40eisentraut.org
Diffstat (limited to 'src/backend/utils/adt/json.c')
-rw-r--r--src/backend/utils/adt/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c
index 55413c0fdf2..71ae53ff975 100644
--- a/src/backend/utils/adt/json.c
+++ b/src/backend/utils/adt/json.c
@@ -1182,7 +1182,7 @@ catenate_stringinfo_string(StringInfo buffer, const char *addon)
}
Datum
-json_build_object_worker(int nargs, Datum *args, bool *nulls, Oid *types,
+json_build_object_worker(int nargs, const Datum *args, const bool *nulls, const Oid *types,
bool absent_on_null, bool unique_keys)
{
int i;
@@ -1295,7 +1295,7 @@ json_build_object_noargs(PG_FUNCTION_ARGS)
}
Datum
-json_build_array_worker(int nargs, Datum *args, bool *nulls, Oid *types,
+json_build_array_worker(int nargs, const Datum *args, const bool *nulls, const Oid *types,
bool absent_on_null)
{
int i;