Re: strangely worded message

2025-01-07 Thread Alvaro Herrera
Hi Amit, On 2024-Dec-16, Amit Langote wrote: > > ERROR: cannot use type %s in RETURNING clause of %s > > DETAIL: Only types json and jsonb are allowed in the RETURNING clause. > I think I'd go with the one you chose. Actually I noticed that the one in JSON_SERIALIZE() already has a different

Re: strangely worded message

2024-12-15 Thread Amit Langote
Hi Alvaro, On Sat, Dec 14, 2024 at 9:43 PM Alvaro Herrera wrote: > > Hello > > The following message introduced by commit 03734a7fed7d appears in two > places: > > if (returning->typid != JSONOID && returning->typid != JSONBOID) > ereport(ERROR, > (errcode(

strangely worded message

2024-12-14 Thread Alvaro Herrera
Hello The following message introduced by commit 03734a7fed7d appears in two places: if (returning->typid != JSONOID && returning->typid != JSONBOID) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), errmsg("cannot use RETURNING type