|Subject||RES: [Firebird-Java] How to rollback / autocommit off and on?|
... your stuffs here....
catch (SQLException se)
catch (Exception e1)
De: dhay@... [mailto:dhay@...]
Enviada em: sexta-feira, 17 de outubro de 2003 15:31
Assunto: [Firebird-Java] How to rollback / autocommit off and on?
I'm setting autocommit off, executing some code, and then if everything
goes okay, turning autocommit on again before returning the connection to
the pool, to commit everything. So far, so good.
My question is what to do if something goes wrong, and I want to rollback
the changes made. As I am using connection pooling I have to set the
autocommit on again, but what's the best way to roll back the changes
before I do so?
To unsubscribe from this group, send an email to:
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.