Re: printing oid with %d
От
Michael Paquier
Тема
Re: printing oid with %d
Дата
Msg-id
20200728075912.GB28700@paquier.xyz
Ответ на
printing oid with %d (Justin Pryzby)
Список
Дерево обсуждения
printing oid with %d Justin Pryzby <pryzby@telsasoft.com>
Re: printing oid with %d Michael Paquier <michael@paquier.xyz>
Re: printing oid with %d Tom Lane <tgl@sss.pgh.pa.us>
Re: printing oid with %d Michael Paquier <michael@paquier.xyz>
On Mon, Jul 27, 2020 at 08:55:23PM -0500, Justin Pryzby wrote: > +JsonEncodeDateTime(char *buf, Datum value, Oid typid) > ... > + elog(ERROR, "unknown jsonb value datetime type oid %d", typid); > > I think this should be %u. Good catch. Yep, Oids are unsigned. We don't backpatch such things usually, do we? Particularly, this one should not be triggerable normally because no code paths should call JsonEncodeDateTime() with an unsupported type Oid. -- Michael
В списке pgsql-hackers по дате отправления
От: Alexey Kondratov
Дата:
От: torikoshia
Дата: