Skip to content

Commit 080b741

Browse files
author
Nikita Glukhov
committed
Remove references to JsonbIterator.isScalar outside of jsonb_utils.c
1 parent ec3f4da commit 080b741

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5375,10 +5375,8 @@ transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
53755375
JsonbIteratorToken type;
53765376
JsonbParseState *st = NULL;
53775377
text *out;
5378-
bool is_scalar = false;
53795378

53805379
it = JsonbIteratorInit(&jsonb->root);
5381-
is_scalar = it->isScalar;
53825380

53835381
while ((type = JsonbIteratorNext(&it, &v, false)) != WJB_DONE)
53845382
{
@@ -5398,7 +5396,7 @@ transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
53985396
}
53995397

54005398
if (res->type == jbvArray)
5401-
res->val.array.rawScalar = is_scalar;
5399+
res->val.array.rawScalar = JB_ROOT_IS_SCALAR(jsonb);
54025400

54035401
return JsonbValueToJsonb(res);
54045402
}

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