Skip to content

Commit 28b29f7

Browse files
committed
Add a couple of missing JsonbValue type initialisers.
1 parent 37def42 commit 28b29f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/utils/adt/jsonfuncs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3718,6 +3718,7 @@ setPathObject(JsonbIterator **it, Datum *path_elems, bool *path_nulls,
37183718
{
37193719
JsonbValue new = k;
37203720

3721+
new.type = jbvString;
37213722
new.val.string.len = VARSIZE_ANY_EXHDR(path_elems[level]);
37223723
new.val.string.val = VARDATA_ANY(path_elems[level]);
37233724

@@ -3759,6 +3760,7 @@ setPathObject(JsonbIterator **it, Datum *path_elems, bool *path_nulls,
37593760
{
37603761
JsonbValue new = k;
37613762

3763+
new.type = jbvString;
37623764
new.val.string.len = VARSIZE_ANY_EXHDR(path_elems[level]);
37633765
new.val.string.val = VARDATA_ANY(path_elems[level]);
37643766

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy