Subject | Re: [Firebird-Java] Closing an autoCommit=false connection |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-03-15T20:30:16Z |
> If I have a connection and autoCommit is false, and some statements haveRolled back.
> been executed, and then close it, is the work committed or rolled back?
> In my finally block, can I call rollback before the close to make sureYou cannot commit or rollback statement, only complete transaction. So,
> any statements that weren't explicitly committed are rolled back? Will
> this throw an exception if the statements were committed?
unless you commit transaction explicitly, it is rolled back (sure, in
auto-commit mode they are always committed).
Roman