Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8b8bd87

Browse files
author
Nikita Glukhov
committed
Refactor jsonpath items appending to the resulting list
1 parent 71e8a1d commit 8b8bd87

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
@@ -719,7 +719,7 @@ jspGetArg(JsonPathItem *v, JsonPathItem *a)
719719
bool
720720
jspGetNext(JsonPathItem *v, JsonPathItem *a)
721721
{
722-
if (v->nextPos > 0)
722+
if (jspHasNext(v))
723723
{
724724
Assert(
725725
v->type == jpiString ||

0 commit comments

Comments
 (0)