Re: Shouldn't jsonpath .string() Unwrap? - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Shouldn't jsonpath .string() Unwrap?
Date
Msg-id 4780A79D-5FB7-4480-8CB5-96B137411B1A@justatheory.com
Whole thread Raw
In response to Re: Shouldn't jsonpath .string() Unwrap?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Shouldn't jsonpath .string() Unwrap?
List pgsql-hackers
On Jun 13, 2024, at 3:53 PM, Andrew Dunstan <andrew@dunslane.net> wrote:

> Hmm. You might be right. Many of these items have this code, but the string() branch does not:
> if (unwrap && JsonbType(jb) == jbvArray)
>    return executeItemUnwrapTargetArray(cxt, jsp, jb, found,
>                                        false);

Exactly, would be pretty easy to add. I can work up a patch this weekend.

D




pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: RFC: adding pytest as a supported test framework
Next
From: Michael Paquier
Date:
Subject: Re: CI and test improvements