public inbox for [email protected]
help / color / mirror / Atom feedFrom: listas <[email protected]>
To: Daniele Varrazzo <[email protected]>
Cc: [email protected]
Subject: Re: Adaptation in psycopg3
Date: Wed, 25 Nov 2020 21:05:50 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+mi_8Z=nPj4ZiS7Z8CyPtOgAosMdUd_wh6o0ZeRs2rsgNBMBg@mail.gmail.com>
References: <CA+mi_8ZYBu5V1hcKvsnMqgKayGvyMRJAMdMQVXvZ02QXsnt9yA@mail.gmail.com>
<[email protected]>
<CA+mi_8YBYfTjfhBvbz8ivRD4wz6d1MExjhWTcCHAXDiX3tKzeA@mail.gmail.com>
<[email protected]>
<CA+mi_8Z=nPj4ZiS7Z8CyPtOgAosMdUd_wh6o0ZeRs2rsgNBMBg@mail.gmail.com>
...
>
> What you would do, both in psycopg2 and 3, would be something like:
>
> cursor.execute("update mytable set jsfield=%s where id = any(%s)",
> (Json(data), idList))
>
> Code like this should work in both versions.
>
perfect :) thank you very much
--
Oswaldo Hernández
view thread (7+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Adaptation in psycopg3
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox