Hi,
I created a sql file with several SQL queries.
If one of them fail, I want all to rollback, so I introduced a begin work at the beginning of my file and activated the AutoCommit preference.
But when an error occurs, I get the useless message :
ERROR: current transaction is aborted, commands ignored until end of transaction block.
I get no information about the error that occured. To get this information, I must delete the begin work statement. But if I do that, the first queries which are correct are commited and the ones after the error don’t execute.
How can I get the error message that helps me to diagnose the problem and rollback all the queries when there’s a problem ?
Regards
A. ROY