Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
8e062329
提交
8e062329
authored
6月 24, 2013
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Formatting / MVTableEngine
上级
3793f779
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
33 行删除
+18
-33
ValueLobDb.java
h2/src/main/org/h2/value/ValueLobDb.java
+1
-1
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+17
-32
没有找到文件。
h2/src/main/org/h2/value/ValueLobDb.java
浏览文件 @
8e062329
...
@@ -79,7 +79,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo
...
@@ -79,7 +79,7 @@ public class ValueLobDb extends Value implements Value.ValueClob, Value.ValueBlo
this
.
hmac
=
null
;
this
.
hmac
=
null
;
this
.
handler
=
handler
;
this
.
handler
=
handler
;
}
}
/**
/**
* Create a LOB value.
* Create a LOB value.
*
*
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
8e062329
...
@@ -498,8 +498,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -498,8 +498,8 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
*/
*/
private
void
runTests
()
throws
SQLException
{
private
void
runTests
()
throws
SQLException
{
int
test
;
{}
// mvStore = tru
e;
mvStore
=
fals
e
;
smallLog
=
big
=
networked
=
memory
=
ssl
=
false
;
smallLog
=
big
=
networked
=
memory
=
ssl
=
false
;
diskResult
=
traceSystemOut
=
diskUndo
=
false
;
diskResult
=
traceSystemOut
=
diskUndo
=
false
;
...
@@ -589,9 +589,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -589,9 +589,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestDeadlock
().
runTest
(
this
);
new
TestDeadlock
().
runTest
(
this
);
new
TestEncryptedDb
().
runTest
(
this
);
new
TestEncryptedDb
().
runTest
(
this
);
new
TestExclusive
().
runTest
(
this
);
new
TestExclusive
().
runTest
(
this
);
if
(!
mvStore
)
{
new
TestFullText
().
runTest
(
this
);
new
TestFullText
().
runTest
(
this
);
}
new
TestFunctionOverload
().
runTest
(
this
);
new
TestFunctionOverload
().
runTest
(
this
);
new
TestFunctions
().
runTest
(
this
);
new
TestFunctions
().
runTest
(
this
);
new
TestInit
().
runTest
(
this
);
new
TestInit
().
runTest
(
this
);
...
@@ -607,15 +605,14 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -607,15 +605,14 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestMultiThreadedKernel
().
runTest
(
this
);
new
TestMultiThreadedKernel
().
runTest
(
this
);
new
TestOpenClose
().
runTest
(
this
);
new
TestOpenClose
().
runTest
(
this
);
new
TestOptimizations
().
runTest
(
this
);
new
TestOptimizations
().
runTest
(
this
);
if
(!
mvStore
)
{
new
TestOutOfMemory
().
runTest
(
this
);
new
TestOutOfMemory
().
runTest
(
this
);
}
new
TestPowerOff
().
runTest
(
this
);
new
TestPowerOff
().
runTest
(
this
);
new
TestQueryCache
().
runTest
(
this
);
new
TestQueryCache
().
runTest
(
this
);
new
TestReadOnly
().
runTest
(
this
);
new
TestReadOnly
().
runTest
(
this
);
new
TestRecursiveQueries
().
runTest
(
this
);
new
TestRecursiveQueries
().
runTest
(
this
);
new
TestRights
().
runTest
(
this
);
new
TestRights
().
runTest
(
this
);
if
(!
mvStore
)
{
if
(!
mvStore
)
{
// Recover is not yet implemented
new
TestRunscript
().
runTest
(
this
);
new
TestRunscript
().
runTest
(
this
);
}
}
new
TestSQLInjection
().
runTest
(
this
);
new
TestSQLInjection
().
runTest
(
this
);
...
@@ -627,9 +624,10 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -627,9 +624,10 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestSpeed
().
runTest
(
this
);
new
TestSpeed
().
runTest
(
this
);
new
TestTableEngines
().
runTest
(
this
);
new
TestTableEngines
().
runTest
(
this
);
new
TestTempTables
().
runTest
(
this
);
new
TestTempTables
().
runTest
(
this
);
new
TestTransaction
().
runTest
(
this
);
new
TestTriggersConstraints
().
runTest
(
this
);
if
(!
mvStore
)
{
if
(!
mvStore
)
{
new
TestTransaction
().
runTest
(
this
);
// Two-Phase commit is not yet implemented
new
TestTriggersConstraints
().
runTest
(
this
);
new
TestTwoPhaseCommit
().
runTest
(
this
);
new
TestTwoPhaseCommit
().
runTest
(
this
);
}
}
new
TestView
().
runTest
(
this
);
new
TestView
().
runTest
(
this
);
...
@@ -668,9 +666,10 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -668,9 +666,10 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestDataSource
().
runTest
(
this
);
new
TestDataSource
().
runTest
(
this
);
new
TestXA
().
runTest
(
this
);
new
TestXA
().
runTest
(
this
);
if
(!
mvStore
)
{
if
(!
mvStore
)
{
// Two-Phase commit is not yet implemented
new
TestXASimple
().
runTest
(
this
);
new
TestXASimple
().
runTest
(
this
);
}
}
// server
// server
new
TestAutoServer
().
runTest
(
this
);
new
TestAutoServer
().
runTest
(
this
);
new
TestNestedLoop
().
runTest
(
this
);
new
TestNestedLoop
().
runTest
(
this
);
...
@@ -680,11 +679,9 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -680,11 +679,9 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestMvcc1
().
runTest
(
this
);
new
TestMvcc1
().
runTest
(
this
);
new
TestMvcc2
().
runTest
(
this
);
new
TestMvcc2
().
runTest
(
this
);
new
TestMvcc3
().
runTest
(
this
);
new
TestMvcc3
().
runTest
(
this
);
if
(!
mvStore
)
{
new
TestMvccMultiThreaded
().
runTest
(
this
);
new
TestMvccMultiThreaded
().
runTest
(
this
);
new
TestRowLocks
().
runTest
(
this
);
new
TestRowLocks
().
runTest
(
this
);
}
// synth
// synth
new
TestBtreeIndex
().
runTest
(
this
);
new
TestBtreeIndex
().
runTest
(
this
);
new
TestDiskFull
().
runTest
(
this
);
new
TestDiskFull
().
runTest
(
this
);
...
@@ -720,6 +717,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -720,6 +717,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
// unit
// unit
new
TestAutoReconnect
().
runTest
(
this
);
new
TestAutoReconnect
().
runTest
(
this
);
if
(!
mvStore
)
{
if
(!
mvStore
)
{
// Caching is different; cache size not yet implemented
new
TestCache
().
runTest
(
this
);
new
TestCache
().
runTest
(
this
);
}
}
new
TestClearReferences
().
runTest
(
this
);
new
TestClearReferences
().
runTest
(
this
);
...
@@ -746,14 +744,13 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -746,14 +744,13 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestObjectDeserialization
().
runTest
(
this
);
new
TestObjectDeserialization
().
runTest
(
this
);
new
TestMultiThreadedKernel
().
runTest
(
this
);
new
TestMultiThreadedKernel
().
runTest
(
this
);
new
TestOverflow
().
runTest
(
this
);
new
TestOverflow
().
runTest
(
this
);
if
(!
mvStore
)
{
new
TestPageStore
().
runTest
(
this
);
new
TestPageStore
().
runTest
(
this
);
}
new
TestPageStoreCoverage
().
runTest
(
this
);
new
TestPageStoreCoverage
().
runTest
(
this
);
new
TestPattern
().
runTest
(
this
);
new
TestPattern
().
runTest
(
this
);
new
TestPgServer
().
runTest
(
this
);
new
TestPgServer
().
runTest
(
this
);
new
TestReader
().
runTest
(
this
);
new
TestReader
().
runTest
(
this
);
if
(!
mvStore
)
{
if
(!
mvStore
)
{
// Recover is not yet implemented
new
TestRecovery
().
runTest
(
this
);
new
TestRecovery
().
runTest
(
this
);
}
}
new
TestSampleApps
().
runTest
(
this
);
new
TestSampleApps
().
runTest
(
this
);
...
@@ -766,6 +763,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -766,6 +763,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestStringCache
().
runTest
(
this
);
new
TestStringCache
().
runTest
(
this
);
new
TestStringUtils
().
runTest
(
this
);
new
TestStringUtils
().
runTest
(
this
);
if
(!
mvStore
)
{
if
(!
mvStore
)
{
// Recover is not yet implemented
new
TestTools
().
runTest
(
this
);
new
TestTools
().
runTest
(
this
);
}
}
new
TestTraceSystem
().
runTest
(
this
);
new
TestTraceSystem
().
runTest
(
this
);
...
@@ -775,19 +773,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -775,19 +773,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
new
TestValueHashMap
().
runTest
(
this
);
new
TestValueHashMap
().
runTest
(
this
);
new
TestValueMemory
().
runTest
(
this
);
new
TestValueMemory
().
runTest
(
this
);
}
}
public
static
byte
[]
serialize
(
Object
obj
)
throws
IOException
{
ByteArrayOutputStream
out
=
new
ByteArrayOutputStream
();
ObjectOutputStream
os
=
new
ObjectOutputStream
(
out
);
os
.
writeObject
(
obj
);
return
out
.
toByteArray
();
}
public
static
Object
deserialize
(
byte
[]
data
)
throws
IOException
,
ClassNotFoundException
{
ByteArrayInputStream
in
=
new
ByteArrayInputStream
(
data
);
ObjectInputStream
is
=
new
ObjectInputStream
(
in
);
return
is
.
readObject
();
}
private
void
runTest
(
String
className
)
{
private
void
runTest
(
String
className
)
{
try
{
try
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论