psycopg2 positioning of .commit() (Posting On Python-List Prohibited)

Jon Ribbens jon+usenet at unequivocal.eu
Wed Sep 11 17:12:01 EDT 2024


On 2024-09-11, Lawrence D'Oliveiro <ldo at nz.invalid> wrote:
> On Tue, 10 Sep 2024 22:48:36 -0000 (UTC), Jon Ribbens wrote:
>> But what if you tell it the wrong thing ...
>
> To get back to the original point of this thread, all that rigmarole to 
> try to ensure to call “rollback” in case of an exception is completely 
> unnecessary: the DBMS will take care of that for you.

No, it won't.


More information about the Python-list mailing list