Subject Re: [Firebird-Java] Closing an autoCommit=false connection
Author Roman Rokytskyy
> If I have a connection and autoCommit is false, and some statements have
> been executed, and then close it, is the work committed or rolled back?

Rolled back.

> In my finally block, can I call rollback before the close to make sure
> any statements that weren't explicitly committed are rolled back? Will
> this throw an exception if the statements were committed?

You cannot commit or rollback statement, only complete transaction. So,
unless you commit transaction explicitly, it is rolled back (sure, in
auto-commit mode they are always committed).

Roman