Subject | Transactions |
---|---|
Author | pieczarka2001 |
Post date | 2002-09-07T00:28:47Z |
The driver has suport for transactions? It seems not working.
Ex: conn.setAutoCommit( false );
... (INSERT in Table1)
... (INSERT in Table2)
conn.commit();
conn.setAutoCommit( true );
Records inserted are not visible unless new insertion has come.
I have tested the code in DB2 database and it works fine.
Ex: conn.setAutoCommit( false );
... (INSERT in Table1)
... (INSERT in Table2)
conn.commit();
conn.setAutoCommit( true );
Records inserted are not visible unless new insertion has come.
I have tested the code in DB2 database and it works fine.