]> granicus.if.org Git - postgresql/commitdiff
Add a couple of missing JsonbValue type initialisers.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 1 Jun 2015 02:51:58 +0000 (22:51 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 1 Jun 2015 02:51:58 +0000 (22:51 -0400)
src/backend/utils/adt/jsonfuncs.c

index b1c4b022535a190fc2c867dd21ce9cf6426d1170..15799701ba1adf8bdf952ebc17c6b1ca6852439c 100644 (file)
@@ -3718,6 +3718,7 @@ setPathObject(JsonbIterator **it, Datum *path_elems, bool *path_nulls,
        {
                JsonbValue      new = k;
 
+               new.type = jbvString;
                new.val.string.len = VARSIZE_ANY_EXHDR(path_elems[level]);
                new.val.string.val = VARDATA_ANY(path_elems[level]);
 
@@ -3759,6 +3760,7 @@ setPathObject(JsonbIterator **it, Datum *path_elems, bool *path_nulls,
                        {
                                JsonbValue      new = k;
 
+                               new.type = jbvString;
                                new.val.string.len = VARSIZE_ANY_EXHDR(path_elems[level]);
                                new.val.string.val = VARDATA_ANY(path_elems[level]);