diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-12-12 12:03:04 -0500 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-12-12 12:03:04 -0500 |
commit | 28c22de9b812daeffa630656818da6ec5411a7da (patch) | |
tree | a3b5142c2144ead6aafb62dd71baf0657296e014 /java/test/Freeze/dbmap/Client.java | |
parent | Fixed bug #2546 (diff) | |
download | ice-28c22de9b812daeffa630656818da6ec5411a7da.tar.bz2 ice-28c22de9b812daeffa630656818da6ec5411a7da.tar.xz ice-28c22de9b812daeffa630656818da6ec5411a7da.zip |
Fixed bug #2557 (closing database within transaction)
Diffstat (limited to 'java/test/Freeze/dbmap/Client.java')
-rw-r--r-- | java/test/Freeze/dbmap/Client.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/java/test/Freeze/dbmap/Client.java b/java/test/Freeze/dbmap/Client.java index 869a8166caf..f36500e133c 100644 --- a/java/test/Freeze/dbmap/Client.java +++ b/java/test/Freeze/dbmap/Client.java @@ -200,6 +200,18 @@ public class Client { Freeze.Connection connection = Freeze.Util.createConnection(communicator, envName); + // + // Open/close db within transaction + // + { + Transaction tx = connection.beginTransaction(); + ByteIntMap m = new ByteIntMap(connection, dbName, true); + + m.put(new Byte((byte)'a'), new Integer(1)); + m.close(); + tx.rollback(); + } + java.util.Map m = new ByteIntMap(connection, dbName, true); // @@ -614,7 +626,7 @@ public class Client } } tx.commit(); - iim.close(); + iim.closeDb(); } { |