Re: Adaptation in psycopg3

From: listas <listas(at)soft-com(dot)es>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Adaptation in psycopg3
Date: 2020-11-25 20:05:50
Message-ID: 177f76e2-00a0-a262-cc68-82d7c859e573@soft-com.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

...
>
> 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

In response to

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2020-12-02 11:20:16 Executing on the connection?
Previous Message Daniele Varrazzo 2020-11-25 19:02:42 Re: Adaptation in psycopg3