mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user