Skip to content

Commit 216e561

Browse files
author
Nikita Glukhov
committed
Refactor jsonpath items appending to the resulting list
1 parent f66f26c commit 216e561

File tree

3 files changed

+113
-199
lines changed

3 files changed

+113
-199
lines changed

src/backend/utils/adt/jsonpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ jspGetArg(JsonPathItem *v, JsonPathItem *a)
723723
bool
724724
jspGetNext(JsonPathItem *v, JsonPathItem *a)
725725
{
726-
if (v->nextPos > 0)
726+
if (jspHasNext(v))
727727
{
728728
Assert(
729729
v->type == jpiString ||

0 commit comments

Comments
 (0)