Hi,
I am going through the Hsql Database code, and I noticed that in the class DatabaseCommandInterpreter the call to Session.commit is happening in a few places. One such example is in method:

private void processCreateTable(int type) throws HsqlException {...}

I see that if I have created a table, done some transactions on the table, and now create a new table; then all the transactions made on the first table are committed by call to function:

Session.Commit( )

I do not understand why is this being done. If I have turned AutoCommit to false, then I do not want any commits to happen until I explicitly call commit( ) right? So, if some transactions are being committed, then is not that wrong. How is atomicity of transactions preserved in such a case?

Thanks.

 


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

Reply via email to