So that if no exception has been raised, the transaction is committed. In case of exception the transaction
is rolled back. Also the cursor is then properly closed, without affecting the transaction.
Giuseppe.
Il giorno gio 23 apr 2020 alle ore 13:43 John Zhang <johnzhang06@gmail.com> ha scritto:
Hello all,
I have a need to execute sql scripts in a file with comments in Python 2.7.