提交 0f65e0a5 authored 作者: Thomas Mueller's avatar Thomas Mueller

Lob in database: storing lob objects was not correctly synchronized. This was…

Lob in database: storing lob objects was not correctly synchronized. This was specially a problem when using Connection.createBlob() / createClob().
上级 09fb7554
...@@ -26,6 +26,7 @@ import java.util.ArrayList; ...@@ -26,6 +26,7 @@ import java.util.ArrayList;
import java.util.Random; import java.util.Random;
import org.h2.constant.ErrorCode; import org.h2.constant.ErrorCode;
import org.h2.constant.SysProperties; import org.h2.constant.SysProperties;
import org.h2.jdbc.JdbcConnection;
import org.h2.store.FileLister; import org.h2.store.FileLister;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.h2.tools.DeleteDbFiles; import org.h2.tools.DeleteDbFiles;
...@@ -94,8 +95,8 @@ public class TestLob extends TestBase { ...@@ -94,8 +95,8 @@ public class TestLob extends TestBase {
public void testConcurrentCreate() throws Exception { public void testConcurrentCreate() throws Exception {
deleteDb("lob"); deleteDb("lob");
final Connection conn1 = getConnection("lob"); final JdbcConnection conn1 = (JdbcConnection) getConnection("lob");
final Connection conn2 = getConnection("lob"); final JdbcConnection conn2 = (JdbcConnection) getConnection("lob");
conn1.setAutoCommit(false); conn1.setAutoCommit(false);
conn2.setAutoCommit(false); conn2.setAutoCommit(false);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论