Closed GoogleCodeExporter closed 8 years ago
Here's a trace of the actual transactions. The actual output cannot be seen, but
lines 489-531 prove that there are actually now 2 rows in the table.
Original comment by mb555...@gmail.com
on 14 Aug 2009 at 12:23
Hi,
I can reproduce this problem now. Test case:
Class.forName("org.h2.Driver");
String url = "jdbc:h2:data/test;MVCC=TRUE";
DeleteDbFiles.execute("data", "test", true);
Connection conn = DriverManager.getConnection(url);
Statement stat = conn.createStatement();
stat.execute("create table test(id int primary key) as select 0");
conn.setAutoCommit(false);
stat.executeUpdate("update test set id = 0");
stat.executeUpdate("delete from test");
conn.rollback();
Connection conn2 = DriverManager.getConnection(url);
ResultSet rs = conn2.createStatement().executeQuery(
"select * from test");
while (rs.next()) {
System.out.println(rs.getString(1));
}
Original comment by thomas.t...@gmail.com
on 15 Aug 2009 at 3:52
I have committed a simplified test case and the fix.
Original comment by thomas.t...@gmail.com
on 16 Aug 2009 at 10:19
This should be fixed in version 1.1.118 (2009-09-04)
Original comment by thomas.t...@gmail.com
on 4 Sep 2009 at 9:04
Original issue reported on code.google.com by
mb555...@gmail.com
on 14 Aug 2009 at 11:45