Community
Participate
Working Groups
In Derby, each connection before *close* needs to call *committed* or *rollback* always in order to complete transaction, if autocommit is set to false. Now I got exception "Cannot close a connection while a transaction is still active." on running CDO server for the second time, when DB is already created Even, if transaction executes read statement it must be explicitly *committed* or *rollback*. http://db.apache.org/derby/docs/10.4/devguide/cdevconcepts29416.html
Created attachment 188879 [details] Patch v1 We can always initiate rollback, whenever connections is aranged for closing
Stefan may want to have a look, as well. Since it'd be easy enough to remove you may commit it now ;-)
committed to trunk, revision 7178
Patch has introduced the opposite problem for connections with autocommit = true. I.e. they can't be rolled back, but with the current patch, rollback gets called on them anyway.
Created attachment 189925 [details] Patch (incremental)
Created attachment 190024 [details] Patch v3 - ready to be committed
Committed to trunk, revision 7312.
Available in R20110608-1407