Skip to content

Commit c50bcbf

Browse files
author
Nikita Glukhov
committed
Use WJB_DONE instead of 0
1 parent 2984935 commit c50bcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4433,7 +4433,7 @@ IteratorConcat(JsonbIterator **it1, JsonbIterator **it2,
44334433
* Append the all tokens from v2 to res, include last WJB_END_OBJECT
44344434
* (the concatenation will be completed).
44354435
*/
4436-
while ((r2 = JsonbIteratorNext(it2, &v2, true)) != 0)
4436+
while ((r2 = JsonbIteratorNext(it2, &v2, true)) != WJB_DONE)
44374437
res = pushJsonbValue(state, r2, r2 != WJB_END_OBJECT ? &v2 : NULL);
44384438
}
44394439

0 commit comments

Comments
 (0)