Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c99784

Browse files
author
Nikita Glukhov
committed
Rename Ctor => Constructor
1 parentc1010e2 commit9c99784

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

‎src/backend/executor/execExpr.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,14 +2180,14 @@ ExecInitExprRec(Expr *node, ExprState *state,
21802180
boolis_jsonb=
21812181
ctor->returning->format->format==JS_FORMAT_JSONB;
21822182

2183-
scratch.d.json_ctor.arg_type_cache=
2184-
palloc(sizeof(*scratch.d.json_ctor.arg_type_cache)*nargs);
2183+
scratch.d.json_constructor.arg_type_cache=
2184+
palloc(sizeof(*scratch.d.json_constructor.arg_type_cache)*nargs);
21852185

21862186
for (inti=0;i<nargs;i++)
21872187
{
21882188
intcategory;
21892189
Oidoutfuncid;
2190-
Oidtypid=scratch.d.json_ctor.arg_types[i];
2190+
Oidtypid=scratch.d.json_constructor.arg_types[i];
21912191

21922192
if (is_jsonb)
21932193
{
@@ -2206,8 +2206,8 @@ ExecInitExprRec(Expr *node, ExprState *state,
22062206
category= (int)jscat;
22072207
}
22082208

2209-
scratch.d.json_ctor.arg_type_cache[i].outfuncid=outfuncid;
2210-
scratch.d.json_ctor.arg_type_cache[i].category=category;
2209+
scratch.d.json_constructor.arg_type_cache[i].outfuncid=outfuncid;
2210+
scratch.d.json_constructor.arg_type_cache[i].category=category;
22112211
}
22122212
}
22132213

‎src/backend/executor/execExprInterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)
15821582
op->d.json_constructor.constructor->unique);
15831583
elseif (ctor->type==JSCTOR_JSON_SCALAR)
15841584
{
1585-
if (op->d.json_ctor.arg_nulls[0])
1585+
if (op->d.json_constructor.arg_nulls[0])
15861586
{
15871587
res= (Datum)0;
15881588
isnull= true;

‎src/backend/parser/parse_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4908,6 +4908,6 @@ transformJsonScalarExpr(ParseState *pstate, JsonScalarExpr *jsexpr)
49084908
if (exprType(arg)==UNKNOWNOID)
49094909
arg=coerce_to_specific_type(pstate,arg,TEXTOID,"JSON_SCALAR");
49104910

4911-
returnmakeJsonCtorExpr(pstate,JSCTOR_JSON_SCALAR,list_make1(arg),NULL,
4911+
returnmakeJsonConstructorExpr(pstate,JSCTOR_JSON_SCALAR,list_make1(arg),NULL,
49124912
returning, false, false,jsexpr->location);
49134913
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp