Add a couple of missing JsonbValue type initialisers.

This commit is contained in:
Andrew Dunstan 2015-05-31 22:51:58 -04:00
parent 37def42245
commit 28b29f7e44
1 changed files with 2 additions and 0 deletions

View 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]);