Skip to content

Commit 181fab8

Browse files
author
Nikita Glukhov
committed
Remove references to JsonbIterator.isScalar outside of jsonb_utils.c
1 parent 1968833 commit 181fab8

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
@@ -5445,10 +5445,8 @@ transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
54455445
JsonbIteratorToken type;
54465446
JsonbParseState *st = NULL;
54475447
text *out;
5448-
bool is_scalar = false;
54495448

54505449
it = JsonbIteratorInit(&jsonb->root);
5451-
is_scalar = it->isScalar;
54525450

54535451
while ((type = JsonbIteratorNext(&it, &v, false)) != WJB_DONE)
54545452
{
@@ -5468,7 +5466,7 @@ transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
54685466
}
54695467

54705468
if (res->type == jbvArray)
5471-
res->val.array.rawScalar = is_scalar;
5469+
res->val.array.rawScalar = JB_ROOT_IS_SCALAR(jsonb);
54725470

54735471
return JsonbValueToJsonb(res);
54745472
}

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