Am 04.06.2019 um 03:09 schrieb Justin Pryzby:
> On Wed, May 22, 2019 at 11:01:12PM +0200, Christoph Zwerschke wrote:
>> Not sure what we should do about it? Just better documentation?
>
> I guess the opened question in my mind is exactly which types need/not
> be adapted?  For our purposes, I can call
> "v if type(v)!=list else adapt(v)",
> but what's the general incantation ??

Non-simple types like arrays, records, json, bytea need adaptation. adapt() figures it out automatically, in case of doubt you can simply pass it everything. And if there is ambiguity and the automatic adaptation does not work, you can pass the type as second parameter.

I have created http://trac.pygresql.org:8000/pgtracker/ticket/81 as a reminder that this needs better documentation/support.

-- Christoph
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to