Skip to content

Commit 8d115b5

Browse files
author
Nikita Glukhov
committed
Move local variables
1 parent 799de18 commit 8d115b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4102,11 +4102,9 @@ jsonb_subscription_evaluate(PG_FUNCTION_ARGS)
41024102
{
41034103
SubscriptionRefExprState *sbstate = (SubscriptionRefExprState *) PG_GETARG_POINTER(0);
41044104
SubscriptionExecData *sbsdata = (SubscriptionExecData *) PG_GETARG_POINTER(1);
4105-
ExprContext *econtext = sbsdata->xprcontext;
4106-
bool *is_null = sbsdata->isNull;
41074105
SubscriptionRef *jsonb_ref = (SubscriptionRef *) sbstate->xprstate.expr;
4106+
bool *is_null = sbsdata->isNull;
41084107
bool is_assignment = (jsonb_ref->refassgnexpr != NULL);
4109-
bool eisnull;
41104108
text **path;
41114109
int i = 0;
41124110

@@ -4116,9 +4114,11 @@ jsonb_subscription_evaluate(PG_FUNCTION_ARGS)
41164114

41174115
if (is_assignment)
41184116
{
4119-
Datum sourceData;
4120-
Datum save_datum;
4121-
bool save_isNull;
4117+
ExprContext *econtext = sbsdata->xprcontext;
4118+
Datum sourceData;
4119+
Datum save_datum;
4120+
bool save_isNull;
4121+
bool eisnull;
41224122

41234123
/*
41244124
* We might have a nested-assignment situation, in which the

0 commit comments

Comments
 (0)