3 * Test jsonb delete and operator functions for 9.4+
5 * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
7 * Author: Glyn Astill <glyn@8kb.co.uk>
12 #include "utils/jsonb.h"
13 #include "jsonb_delete.h"
16 pushJsonbBinary(JsonbParseState **pstate, JsonbContainer *in)
21 JsonbValue *res = NULL;
23 it = JsonbIteratorInit((void *)in);
24 while ((r = JsonbIteratorNext(&it, &v, false)) != WJB_DONE)
26 if (r == WJB_KEY || r == WJB_VALUE || r == WJB_ELEM)
27 res = pushJsonbValue(pstate, r, &v);
29 res = pushJsonbValue(pstate, r, NULL);