oracle - OracleJDBC Driver : Does driver commits on close() by default even if conn.setAutoCommit is False? -


does driver commits on close() default if conn.setautocommit() set false?

i have checked insert query, , yes does. let me know if i'm wrong.

when connection closed, needs either rollback or commit current transaction. iirc, jdbc specification allows implementation choose either long consistent in behavior (always commit or rollback on close). yes, behavior allowed , correct.

if best choice debatable: can argue committing on close makes sure no information lost, on other hand didn't explicitly commit, maybe didn't want info persisted.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -