Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
508b1a2e
提交
508b1a2e
authored
10 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Formatting, code conventions
上级
616ffae4
master
noel-pr1
plus33-master
pr/267
stumc-Issue#576
version-1.4.198
version-1.4.197
version-1.4.196
version-1.4.195
version-1.4.194
version-1.4.193
version-1.4.192
version-1.4.191
version-1.4.190
version-1.4.188
无相关合并请求
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
16 行删除
+18
-16
MVSecondaryIndex.java
h2/src/main/org/h2/mvstore/db/MVSecondaryIndex.java
+0
-1
SourceCompiler.java
h2/src/main/org/h2/util/SourceCompiler.java
+1
-1
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+9
-9
TestBase.java
h2/src/test/org/h2/test/TestBase.java
+5
-5
TestLocale.java
h2/src/test/org/h2/test/unit/TestLocale.java
+3
-0
没有找到文件。
h2/src/main/org/h2/mvstore/db/MVSecondaryIndex.java
浏览文件 @
508b1a2e
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
package
org
.
h2
.
mvstore
.
db
;
package
org
.
h2
.
mvstore
.
db
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.Iterator
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.List
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/util/SourceCompiler.java
浏览文件 @
508b1a2e
...
@@ -336,7 +336,7 @@ public class SourceCompiler {
...
@@ -336,7 +336,7 @@ public class SourceCompiler {
}.
execute
();
}.
execute
();
}
}
private
s
ynchronized
static
void
javacSun
(
File
javaFile
)
{
private
s
tatic
synchronized
void
javacSun
(
File
javaFile
)
{
PrintStream
old
=
System
.
err
;
PrintStream
old
=
System
.
err
;
ByteArrayOutputStream
buff
=
new
ByteArrayOutputStream
();
ByteArrayOutputStream
buff
=
new
ByteArrayOutputStream
();
PrintStream
temp
=
new
PrintStream
(
buff
);
PrintStream
temp
=
new
PrintStream
(
buff
);
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
508b1a2e
...
@@ -319,6 +319,11 @@ java org.h2.test.TestAll timer
...
@@ -319,6 +319,11 @@ java org.h2.test.TestAll timer
*/
*/
public
boolean
nestedJoins
;
public
boolean
nestedJoins
;
/**
* If only fast tests should be run. If enabled, SSL is not tested.
*/
public
boolean
fast
;
/**
/**
* If the transaction log should be kept small (that is, the log should be
* If the transaction log should be kept small (that is, the log should be
* switched early).
* switched early).
...
@@ -345,11 +350,6 @@ java org.h2.test.TestAll timer
...
@@ -345,11 +350,6 @@ java org.h2.test.TestAll timer
*/
*/
boolean
endless
;
boolean
endless
;
/**
* If only fast tests should be run. If enabled, SSL is not tested.
*/
public
boolean
fast
;
/**
/**
* The THROTTLE value to use.
* The THROTTLE value to use.
*/
*/
...
@@ -380,10 +380,10 @@ java org.h2.test.TestAll timer
...
@@ -380,10 +380,10 @@ java org.h2.test.TestAll timer
*/
*/
AbbaLockingDetector
abbaLockingDetector
;
AbbaLockingDetector
abbaLockingDetector
;
private
Server
server
;
ArrayList
<
TestBase
>
tests
=
New
.
arrayList
();
ArrayList
<
TestBase
>
tests
=
New
.
arrayList
();
private
Server
server
;
/**
/**
* Run all tests.
* Run all tests.
*
*
...
@@ -863,7 +863,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -863,7 +863,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
private
void
runAddedTests
(
int
threadCount
)
{
private
void
runAddedTests
(
int
threadCount
)
{
Task
[]
tasks
=
new
Task
[
threadCount
];
Task
[]
tasks
=
new
Task
[
threadCount
];
for
(
int
i
=
0
;
i
<
threadCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
threadCount
;
i
++)
{
Task
t
=
new
Task
()
{
Task
t
=
new
Task
()
{
@Override
@Override
public
void
call
()
throws
Exception
{
public
void
call
()
throws
Exception
{
...
@@ -882,7 +882,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -882,7 +882,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
t
.
execute
();
t
.
execute
();
tasks
[
i
]
=
t
;
tasks
[
i
]
=
t
;
}
}
for
(
Task
t
:
tasks
)
{
for
(
Task
t
:
tasks
)
{
t
.
get
();
t
.
get
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/TestBase.java
浏览文件 @
508b1a2e
...
@@ -51,14 +51,14 @@ public abstract class TestBase {
...
@@ -51,14 +51,14 @@ public abstract class TestBase {
public
static
final
String
BASE_TEST_DIR
=
"./data"
;
public
static
final
String
BASE_TEST_DIR
=
"./data"
;
/**
/**
*
The temporary directory
.
*
An id used to create unique file names
.
*/
*/
pr
ivate
static
final
String
TEMP_DIR
=
"./data/temp"
;
pr
otected
static
int
uniqueId
;
/**
/**
*
An id used to create unique file names
.
*
The temporary directory
.
*/
*/
pr
otected
static
int
uniqueId
;
pr
ivate
static
final
String
TEMP_DIR
=
"./data/temp"
;
/**
/**
* The base directory to write test databases.
* The base directory to write test databases.
...
@@ -1012,7 +1012,7 @@ public abstract class TestBase {
...
@@ -1012,7 +1012,7 @@ public abstract class TestBase {
protected
void
assertThrows
(
String
expectedErrorMessage
,
Statement
stat
,
protected
void
assertThrows
(
String
expectedErrorMessage
,
Statement
stat
,
String
sql
)
{
String
sql
)
{
try
{
try
{
stat
.
execute
Query
(
sql
);
stat
.
execute
(
sql
);
fail
(
"Expected error: "
+
expectedErrorMessage
);
fail
(
"Expected error: "
+
expectedErrorMessage
);
}
catch
(
SQLException
ex
)
{
}
catch
(
SQLException
ex
)
{
assertStartsWith
(
ex
.
getMessage
(),
expectedErrorMessage
);
assertStartsWith
(
ex
.
getMessage
(),
expectedErrorMessage
);
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/unit/TestLocale.java
浏览文件 @
508b1a2e
...
@@ -13,6 +13,9 @@ import java.util.Locale;
...
@@ -13,6 +13,9 @@ import java.util.Locale;
import
org.h2.test.TestBase
;
import
org.h2.test.TestBase
;
/**
* Tests that change the default locale.
*/
public
class
TestLocale
extends
TestBase
{
public
class
TestLocale
extends
TestBase
{
/**
/**
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论