Skip to content

Commit 7f17ae0

Browse files
committed
Fix argument name differences
Different names were used between function declaration and definition.
1 parent f6d5d22 commit 7f17ae0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ static Datum populate_record_worker(FunctionCallInfo fcinfo, const char *funcnam
411411
bool have_record_arg);
412412

413413
/* helper functions for populate_record[set] */
414-
static HeapTupleHeader populate_record(TupleDesc tupdesc, RecordIOData **record_info,
415-
HeapTupleHeader template, MemoryContext mcxt,
414+
static HeapTupleHeader populate_record(TupleDesc tupdesc, RecordIOData **record_p,
415+
HeapTupleHeader defaultval, MemoryContext mcxt,
416416
JsObject *obj);
417417
static Datum populate_record_field(ColumnIOData *col, Oid typid, int32 typmod,
418418
const char *colname, MemoryContext mcxt,
@@ -3008,12 +3008,12 @@ JsObjectGetField(JsObject *obj, char *field, JsValue *jsv)
30083008
/* populate a record tuple from json/jsonb value */
30093009
static HeapTupleHeader
30103010
populate_record(TupleDesc tupdesc,
3011-
RecordIOData **precord,
3011+
RecordIOData **record_p,
30123012
HeapTupleHeader defaultval,
30133013
MemoryContext mcxt,
30143014
JsObject *obj)
30153015
{
3016-
RecordIOData *record = *precord;
3016+
RecordIOData *record = *record_p;
30173017
Datum *values;
30183018
bool *nulls;
30193019
HeapTuple res;
@@ -3031,7 +3031,7 @@ populate_record(TupleDesc tupdesc,
30313031
/* (re)allocate metadata cache */
30323032
if (record == NULL ||
30333033
record->ncolumns != ncolumns)
3034-
*precord = record = allocate_record_info(mcxt, ncolumns);
3034+
*record_p = record = allocate_record_info(mcxt, ncolumns);
30353035

30363036
/* invalidate metadata cache if the record type has changed */
30373037
if (record->record_type != tupdesc->tdtypeid ||

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy