Sujet : Re: psycopg2 positioning of .commit() (Posting On Python-List Prohibited)
De : jon+usenet (at) *nospam* unequivocal.eu (Jon Ribbens)
Groupes : comp.lang.pythonDate : 11. Sep 2024, 23:12:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnve41t1.4c4.jon+usenet@raven.unequivocal.eu>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : slrn/1.0.3 (Linux)
On 2024-09-11, Lawrence D'Oliveiro <
ldo@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.