Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b13d1556
提交
b13d1556
authored
12 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Issue 464: [MVStore] org.h2.mvstore.db.MVTable throws java.lang.NullPointerException
上级
ac913fb4
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
31 行增加
和
22 行删除
+31
-22
changelog.html
h2/src/docsrc/html/changelog.html
+1
-1
MVTable.java
h2/src/main/org/h2/mvstore/db/MVTable.java
+1
-0
MVTableEngine.java
h2/src/main/org/h2/mvstore/db/MVTableEngine.java
+4
-0
ValueLob.java
h2/src/main/org/h2/value/ValueLob.java
+1
-0
TestMVTableEngine.java
h2/src/test/org/h2/test/store/TestMVTableEngine.java
+24
-21
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
b13d1556
...
@@ -23,7 +23,7 @@ Change Log
...
@@ -23,7 +23,7 @@ Change Log
in a strange exception of the type "column x must be included in the group by list".
in a strange exception of the type "column x must be included in the group by list".
</li><li>
Issue 454: Use Charset for type-safety.
</li><li>
Issue 454: Use Charset for type-safety.
</li><li>
Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
</li><li>
Queries with both LIMIT and OFFSET could throw an IllegalArgumentException.
</li><li>
MVStore: multiple issues were fixed: 460, 461, 462.
</li><li>
MVStore: multiple issues were fixed: 460, 461, 462
, 464
.
</li><li>
MVStore: larger stores (multiple GB) are now much faster.
</li><li>
MVStore: larger stores (multiple GB) are now much faster.
</li><li>
When using local temporary tables and not dropping them manually before closing the session,
</li><li>
When using local temporary tables and not dropping them manually before closing the session,
and then killing the process could result in a database that couldn't be opened (except when using
and then killing the process could result in a database that couldn't be opened (except when using
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/db/MVTable.java
浏览文件 @
b13d1556
...
@@ -642,6 +642,7 @@ public class MVTable extends TableBase {
...
@@ -642,6 +642,7 @@ public class MVTable extends TableBase {
}
}
primaryIndex
.
remove
(
session
);
primaryIndex
.
remove
(
session
);
database
.
removeMeta
(
session
,
getId
());
database
.
removeMeta
(
session
,
getId
());
database
.
getMvStore
().
removeTable
(
this
);
primaryIndex
=
null
;
primaryIndex
=
null
;
close
(
session
);
close
(
session
);
invalidate
();
invalidate
();
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/db/MVTableEngine.java
浏览文件 @
b13d1556
...
@@ -101,6 +101,10 @@ public class MVTableEngine implements TableEngine {
...
@@ -101,6 +101,10 @@ public class MVTableEngine implements TableEngine {
return
openTables
;
return
openTables
;
}
}
public
void
removeTable
(
MVTable
table
)
{
openTables
.
remove
(
table
);
}
/**
/**
* Store all pending changes.
* Store all pending changes.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/value/ValueLob.java
浏览文件 @
b13d1556
...
@@ -476,6 +476,7 @@ public class ValueLob extends Value {
...
@@ -476,6 +476,7 @@ public class ValueLob extends Value {
if
(
fileName
!=
null
)
{
if
(
fileName
!=
null
)
{
if
(
tempFile
!=
null
)
{
if
(
tempFile
!=
null
)
{
tempFile
.
stopAutoDelete
();
tempFile
.
stopAutoDelete
();
tempFile
=
null
;
}
}
deleteFile
(
handler
,
fileName
);
deleteFile
(
handler
,
fileName
);
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/store/TestMVTableEngine.java
浏览文件 @
b13d1556
...
@@ -114,6 +114,7 @@ int test;
...
@@ -114,6 +114,7 @@ int test;
Statement
stat
;
Statement
stat
;
ResultSet
rs
;
ResultSet
rs
;
conn
=
getConnection
(
"mvstore"
);
conn
=
getConnection
(
"mvstore"
);
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
stat
=
conn
.
createStatement
();
stat
=
conn
.
createStatement
();
stat
.
execute
(
"create table test(id int primary key, name varchar) "
stat
.
execute
(
"create table test(id int primary key, name varchar) "
+
"engine \"org.h2.mvstore.db.MVTableEngine\""
);
+
"engine \"org.h2.mvstore.db.MVTableEngine\""
);
...
@@ -135,6 +136,8 @@ int test;
...
@@ -135,6 +136,8 @@ int test;
rs
=
stat
.
executeQuery
(
"select count(*) from test"
);
rs
=
stat
.
executeQuery
(
"select count(*) from test"
);
rs
.
next
();
rs
.
next
();
assertEquals
(
1
,
rs
.
getInt
(
1
));
assertEquals
(
1
,
rs
.
getInt
(
1
));
stat
.
execute
(
"drop table test"
);
}
conn
.
close
();
conn
.
close
();
}
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论