Re: Adaptation in psycopg3 - Mailing list psycopg

From listas
Subject Re: Adaptation in psycopg3
Date
Msg-id 177f76e2-00a0-a262-cc68-82d7c859e573@soft-com.es
Whole thread Raw
In response to Re: Adaptation in psycopg3  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List 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



psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Adaptation in psycopg3
Next
From: Daniele Varrazzo
Date:
Subject: Executing on the connection?