Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
4d1e5e1e
提交
4d1e5e1e
authored
4月 24, 2015
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Formatting, code conventions
上级
508b1a2e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
932 行增加
和
848 行删除
+932
-848
features.html
h2/src/docsrc/html/features.html
+1
-1
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+314
-281
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+314
-281
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+288
-277
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+3
-0
TestCases.java
h2/src/test/org/h2/test/db/TestCases.java
+4
-2
TestWeb.java
h2/src/test/org/h2/test/server/TestWeb.java
+2
-1
Build.java
h2/src/tools/org/h2/build/Build.java
+5
-5
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-0
没有找到文件。
h2/src/docsrc/html/features.html
浏览文件 @
4d1e5e1e
...
@@ -860,7 +860,7 @@ This database synchronizes access to the same connection, but other databases ma
...
@@ -860,7 +860,7 @@ This database synchronizes access to the same connection, but other databases ma
To get higher concurrency, you need to use multiple connections.
To get higher concurrency, you need to use multiple connections.
</p>
</p>
<p>
<p>
By default, requests to the same database are synchronized.
By default, requests to the same database are synchronized.
That means an application can use multiple threads that access the same database
That means an application can use multiple threads that access the same database
at the same time, however if one thread executes a long running query, the other threads need to wait.
at the same time, however if one thread executes a long running query, the other threads need to wait.
To enable concurrent database usage, see the setting
<code>
MULTI_THREADED
</code>
.
To enable concurrent database usage, see the setting
<code>
MULTI_THREADED
</code>
.
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
4d1e5e1e
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
4d1e5e1e
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
4d1e5e1e
差异被折叠。
点击展开。
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
4d1e5e1e
...
@@ -380,6 +380,9 @@ java org.h2.test.TestAll timer
...
@@ -380,6 +380,9 @@ java org.h2.test.TestAll timer
*/
*/
AbbaLockingDetector
abbaLockingDetector
;
AbbaLockingDetector
abbaLockingDetector
;
/**
* The list of tests.
*/
ArrayList
<
TestBase
>
tests
=
New
.
arrayList
();
ArrayList
<
TestBase
>
tests
=
New
.
arrayList
();
private
Server
server
;
private
Server
server
;
...
...
h2/src/test/org/h2/test/db/TestCases.java
浏览文件 @
4d1e5e1e
...
@@ -150,8 +150,10 @@ public class TestCases extends TestBase {
...
@@ -150,8 +150,10 @@ public class TestCases extends TestBase {
stat
.
execute
(
"create table parent(id int primary key)"
);
stat
.
execute
(
"create table parent(id int primary key)"
);
stat
.
execute
(
"create table child(id int, parent_id int, x int)"
);
stat
.
execute
(
"create table child(id int, parent_id int, x int)"
);
stat
.
execute
(
"create index y on child(parent_id, x)"
);
stat
.
execute
(
"create index y on child(parent_id, x)"
);
stat
.
execute
(
"alter table child add constraint z foreign key(parent_id) references parent(id)"
);
stat
.
execute
(
"alter table child add constraint z "
+
ResultSet
rs
=
stat
.
executeQuery
(
"select * from information_schema.indexes where table_name = 'CHILD'"
);
"foreign key(parent_id) references parent(id)"
);
ResultSet
rs
=
stat
.
executeQuery
(
"select * from information_schema.indexes where table_name = 'CHILD'"
);
while
(
rs
.
next
())
{
while
(
rs
.
next
())
{
assertEquals
(
"Y"
,
rs
.
getString
(
"index_name"
));
assertEquals
(
"Y"
,
rs
.
getString
(
"index_name"
));
}
}
...
...
h2/src/test/org/h2/test/server/TestWeb.java
浏览文件 @
4d1e5e1e
...
@@ -202,7 +202,8 @@ public class TestWeb extends TestBase {
...
@@ -202,7 +202,8 @@ public class TestWeb extends TestBase {
assertTrue
(
FileUtils
.
exists
(
getBaseDir
()
+
"/"
+
getTestName
()
+
".h2.sql"
));
assertTrue
(
FileUtils
.
exists
(
getBaseDir
()
+
"/"
+
getTestName
()
+
".h2.sql"
));
FileUtils
.
delete
(
getBaseDir
()
+
"/web.h2.sql"
);
FileUtils
.
delete
(
getBaseDir
()
+
"/web.h2.sql"
);
result
=
client
.
get
(
url
,
"tools.do?tool=RunScript&args=-script,"
+
result
=
client
.
get
(
url
,
"tools.do?tool=RunScript&args=-script,"
+
getBaseDir
()
+
"/"
+
getTestName
()
+
".h2.sql,-url,"
+
getURL
(
getTestName
(),
true
)
+
getBaseDir
()
+
"/"
+
getTestName
()
+
".h2.sql,-url,"
+
getURL
(
getTestName
(),
true
)
+
",-user,"
+
getUser
()
+
",-password,"
+
getPassword
());
",-user,"
+
getUser
()
+
",-password,"
+
getPassword
());
FileUtils
.
delete
(
getBaseDir
()
+
"/"
+
getTestName
()
+
".h2.sql"
);
FileUtils
.
delete
(
getBaseDir
()
+
"/"
+
getTestName
()
+
".h2.sql"
);
assertTrue
(
FileUtils
.
exists
(
fn
));
assertTrue
(
FileUtils
.
exists
(
fn
));
...
...
h2/src/tools/org/h2/build/Build.java
浏览文件 @
4d1e5e1e
...
@@ -784,14 +784,14 @@ public class Build extends BuildBase {
...
@@ -784,14 +784,14 @@ public class Build extends BuildBase {
public
void
test
()
{
public
void
test
()
{
test
(
false
);
test
(
false
);
}
}
/**
/**
* Compile and run all fast tests. This does not include the compile step.
* Compile and run all fast tests. This does not include the compile step.
*/
*/
public
void
testFast
()
{
public
void
testFast
()
{
test
(
true
);
test
(
true
);
}
}
private
void
test
(
boolean
fast
)
{
private
void
test
(
boolean
fast
)
{
downloadTest
();
downloadTest
();
String
cp
=
"temp"
+
File
.
pathSeparator
+
"bin"
+
String
cp
=
"temp"
+
File
.
pathSeparator
+
"bin"
+
...
@@ -810,12 +810,12 @@ public class Build extends BuildBase {
...
@@ -810,12 +810,12 @@ public class Build extends BuildBase {
exec
(
"java"
,
args
(
exec
(
"java"
,
args
(
"-Xmx128m"
,
"-Xmx128m"
,
"-cp"
,
cp
,
"-cp"
,
cp
,
"org.h2.test.TestAll"
,
"fast"
));
"org.h2.test.TestAll"
,
"fast"
));
}
else
{
}
else
{
exec
(
"java"
,
args
(
exec
(
"java"
,
args
(
"-Xmx128m"
,
"-Xmx128m"
,
"-cp"
,
cp
,
"-cp"
,
cp
,
"org.h2.test.TestAll"
));
"org.h2.test.TestAll"
));
}
}
}
}
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
4d1e5e1e
...
@@ -771,3 +771,4 @@ young sweep clearer accounting disappeared donor oome ken jorissen nesterov
...
@@ -771,3 +771,4 @@ young sweep clearer accounting disappeared donor oome ken jorissen nesterov
degradation failures fashion disjunctive mentioned conjunctive misses broke
degradation failures fashion disjunctive mentioned conjunctive misses broke
authenticate orphaned registrations topology planner
authenticate orphaned registrations topology planner
zepfred frederico thimel arnaud manipulating strongly lots aquiles younger needing
zepfred frederico thimel arnaud manipulating strongly lots aquiles younger needing
unrecognized five omitting registering
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论