Sujet : Re: psycopg2 positioning of .commit() (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 11. Sep 2024, 22:30:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbsum0$3pop6$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Pan/0.160 (Toresk; )
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.