Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
9b9efb99
提交
9b9efb99
authored
9月 28, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs
上级
6a0beab2
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
126 行增加
和
86 行删除
+126
-86
Update.java
h2/src/main/org/h2/command/dml/Update.java
+1
-1
tree.js
h2/src/main/org/h2/server/web/res/tree.js
+1
-1
FileLock.java
h2/src/main/org/h2/store/FileLock.java
+1
-0
SimpleResultSet.java
h2/src/main/org/h2/tools/SimpleResultSet.java
+0
-20
IntArray.java
h2/src/main/org/h2/util/IntArray.java
+5
-1
GenerateHelp.java
h2/src/tools/org/h2/build/doc/GenerateHelp.java
+1
-1
LinkChecker.java
h2/src/tools/org/h2/build/doc/LinkChecker.java
+55
-36
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+2
-1
Doclet.java
h2/src/tools/org/h2/build/doclet/Doclet.java
+60
-25
没有找到文件。
h2/src/main/org/h2/command/dml/Update.java
浏览文件 @
9b9efb99
...
...
@@ -124,7 +124,7 @@ public class Update extends Prepared {
// don't work if update is multi-row and 'inversed' the condition!
// probably need multi-row triggers with 'deleted' and 'inserted'
// at the same time. anyway good for sql compatibility
// TODO update in-place (but if the
position
changes,
// TODO update in-place (but if the
key
changes,
// we need to update all indexes) before row triggers
// the cached row is already updated - we need the old values
...
...
h2/src/main/org/h2/server/web/res/tree.js
浏览文件 @
9b9efb99
...
...
@@ -98,7 +98,7 @@ function writeTree() {
if
(
node
.
link
==
null
)
{
document
.
write
(
node
.
text
);
}
else
{
document
.
write
(
"<a
name
='"
+
node
.
text
+
"' href=
\"
"
+
node
.
link
+
"
\"
>"
+
node
.
text
+
"</a>"
);
document
.
write
(
"<a
id
='"
+
node
.
text
+
"' href=
\"
"
+
node
.
link
+
"
\"
>"
+
node
.
text
+
"</a>"
);
}
document
.
write
(
"<br />"
);
}
...
...
h2/src/main/org/h2/store/FileLock.java
浏览文件 @
9b9efb99
...
...
@@ -105,6 +105,7 @@ public class FileLock {
* Create a new file locking object.
*
* @param traceSystem the trace system to use
* @param fileName the file name
* @param sleep the number of milliseconds to sleep
*/
public
FileLock
(
TraceSystem
traceSystem
,
String
fileName
,
int
sleep
)
{
...
...
h2/src/main/org/h2/tools/SimpleResultSet.java
浏览文件 @
9b9efb99
...
...
@@ -201,26 +201,6 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
this
.
source
=
source
;
}
/**
* Constructor a new result set that is later populated with addRow.
*
* @return the new object
*/
public
static
SimpleResultSet
newInstance
()
{
return
new
SimpleResultSet
();
}
/**
* Constructor a new result set if the rows should be retrieved using
* the specified row source object.
*
* @param source the row source
* @return the new object
*/
public
static
SimpleResultSet
newInstance
(
SimpleRowSource
source
)
{
return
new
SimpleResultSet
(
source
);
}
/**
* Adds a column to the result set.
*
...
...
h2/src/main/org/h2/util/IntArray.java
浏览文件 @
9b9efb99
...
...
@@ -22,11 +22,13 @@ public class IntArray {
* Create an int array with the default initial capacity.
*/
public
IntArray
()
{
data
=
new
int
[
10
]
;
this
(
10
)
;
}
/**
* Create an int array with specified initial capacity.
*
* @param capacity the initial capacity
*/
public
IntArray
(
int
capacity
)
{
data
=
new
int
[
capacity
];
...
...
@@ -34,6 +36,8 @@ public class IntArray {
/**
* Create an int array with the given values and size.
*
* @param data the int array
*/
public
IntArray
(
int
[]
data
)
{
this
.
data
=
data
;
...
...
h2/src/tools/org/h2/build/doc/GenerateHelp.java
浏览文件 @
9b9efb99
...
...
@@ -33,7 +33,7 @@ public class GenerateHelp {
String
in
=
"src/docsrc/help/help.csv"
;
String
out
=
"src/main/org/h2/res/help.csv"
;
ResultSet
rs
=
Csv
.
getInstance
().
read
(
in
,
null
,
null
);
SimpleResultSet
rs2
=
SimpleResultSet
.
newInstance
();
SimpleResultSet
rs2
=
new
SimpleResultSet
();
ResultSetMetaData
meta
=
rs
.
getMetaData
();
int
columnCount
=
meta
.
getColumnCount
()
-
1
;
for
(
int
i
=
0
;
i
<
columnCount
;
i
++)
{
...
...
h2/src/tools/org/h2/build/doc/LinkChecker.java
浏览文件 @
9b9efb99
...
...
@@ -77,7 +77,7 @@ public class LinkChecker {
if
(!
link
.
startsWith
(
"http"
)
&&
!
link
.
endsWith
(
"h2.pdf"
)
&&
link
.
indexOf
(
"_ja."
)
<
0
)
{
if
(
targets
.
get
(
link
)
==
null
)
{
errors
.
add
(
links
.
get
(
link
)
+
":
l
ink missing "
+
link
);
errors
.
add
(
links
.
get
(
link
)
+
":
L
ink missing "
+
link
);
}
}
}
...
...
@@ -87,7 +87,7 @@ public class LinkChecker {
}
}
for
(
String
name
:
targets
.
keySet
())
{
if
(
targets
.
get
(
name
).
equals
(
"
name
"
))
{
if
(
targets
.
get
(
name
).
equals
(
"
id
"
))
{
boolean
ignore
=
false
;
for
(
String
to
:
IGNORE_MISSING_LINKS_TO
)
{
if
(
name
.
indexOf
(
to
)
>=
0
)
{
...
...
@@ -138,13 +138,56 @@ public class LinkChecker {
if
(
idx
<
0
)
{
break
;
}
int
start
=
idx
+
4
;
int
start
=
idx
+
" id=\""
.
length
();
int
end
=
html
.
indexOf
(
"\""
,
start
);
if
(
end
<
0
)
{
error
(
fileName
,
"Expected \" after id= "
+
html
.
substring
(
idx
,
idx
+
100
));
}
String
ref
=
html
.
substring
(
start
,
end
);
if
(!
ref
.
startsWith
(
"_"
))
{
targets
.
put
(
path
+
"#"
+
ref
,
"id"
);
}
}
idx
=
-
1
;
while
(
true
)
{
idx
=
html
.
indexOf
(
" href=\""
,
idx
+
1
);
if
(
idx
<
0
)
{
break
;
}
int
start
=
html
.
indexOf
(
"\""
,
idx
);
if
(
start
<
0
)
{
error
(
fileName
,
"Expected \" after href= at "
+
html
.
substring
(
idx
,
idx
+
100
));
}
int
end
=
html
.
indexOf
(
"\""
,
start
+
1
);
if
(
end
<
0
)
{
error
(
fileName
,
"
expected \" after id=
"
+
html
.
substring
(
idx
,
idx
+
100
));
error
(
fileName
,
"
Expected \" after href= at
"
+
html
.
substring
(
idx
,
idx
+
100
));
}
String
ref
=
html
.
substring
(
start
+
1
,
end
);
targets
.
put
(
path
+
"#"
+
ref
,
"id"
);
if
(
ref
.
startsWith
(
"http:"
)
||
ref
.
startsWith
(
"https:"
))
{
// ok
}
else
if
(
ref
.
startsWith
(
"javascript:"
))
{
ref
=
null
;
// ok
}
else
if
(
ref
.
length
()
==
0
)
{
ref
=
null
;
// ok
}
else
if
(
ref
.
startsWith
(
"#"
))
{
ref
=
path
+
ref
;
}
else
{
String
p
=
parent
;
while
(
ref
.
startsWith
(
"."
))
{
if
(
ref
.
startsWith
(
"./"
))
{
ref
=
ref
.
substring
(
2
);
}
else
if
(
ref
.
startsWith
(
"../"
))
{
ref
=
ref
.
substring
(
3
);
p
=
p
.
substring
(
0
,
p
.
lastIndexOf
(
'/'
));
}
}
ref
=
p
+
"/"
+
ref
;
}
if
(
ref
!=
null
)
{
links
.
put
(
ref
,
path
);
}
}
idx
=
-
1
;
while
(
true
)
{
...
...
@@ -154,48 +197,24 @@ public class LinkChecker {
}
int
equals
=
html
.
indexOf
(
"="
,
idx
);
if
(
equals
<
0
)
{
error
(
fileName
,
"
e
xpected = after <a at "
+
html
.
substring
(
idx
,
idx
+
100
));
error
(
fileName
,
"
E
xpected = after <a at "
+
html
.
substring
(
idx
,
idx
+
100
));
}
String
type
=
html
.
substring
(
idx
+
2
,
equals
).
trim
();
int
start
=
html
.
indexOf
(
"\""
,
idx
);
if
(
start
<
0
)
{
error
(
fileName
,
"
e
xpected \" after <a at "
+
html
.
substring
(
idx
,
idx
+
100
));
error
(
fileName
,
"
E
xpected \" after <a at "
+
html
.
substring
(
idx
,
idx
+
100
));
}
int
end
=
html
.
indexOf
(
"\""
,
start
+
1
);
if
(
end
<
0
)
{
error
(
fileName
,
"
e
xpected \" after <a at "
+
html
.
substring
(
idx
,
idx
+
100
));
error
(
fileName
,
"
E
xpected \" after <a at "
+
html
.
substring
(
idx
,
idx
+
100
));
}
String
ref
=
html
.
substring
(
start
+
1
,
end
);
if
(
type
.
equals
(
"href"
))
{
if
(
ref
.
startsWith
(
"http:"
)
||
ref
.
startsWith
(
"https:"
))
{
// ok
}
else
if
(
ref
.
startsWith
(
"javascript:"
))
{
ref
=
null
;
// ok
}
else
if
(
ref
.
length
()
==
0
)
{
ref
=
null
;
// ok
}
else
if
(
ref
.
startsWith
(
"#"
))
{
ref
=
path
+
ref
;
}
else
{
String
p
=
parent
;
while
(
ref
.
startsWith
(
"."
))
{
if
(
ref
.
startsWith
(
"./"
))
{
ref
=
ref
.
substring
(
2
);
}
else
if
(
ref
.
startsWith
(
"../"
))
{
ref
=
ref
.
substring
(
3
);
p
=
p
.
substring
(
0
,
p
.
lastIndexOf
(
'/'
));
}
}
ref
=
p
+
"/"
+
ref
;
}
if
(
ref
!=
null
)
{
links
.
put
(
ref
,
path
);
}
}
else
if
(
type
.
equals
(
"name"
))
{
targets
.
put
(
path
+
"#"
+
ref
,
"name"
);
// already checked
}
else
if
(
type
.
equals
(
"id"
))
{
targets
.
put
(
path
+
"#"
+
ref
,
"id"
);
}
else
{
error
(
fileName
,
"
u
nsupported <a ?: "
+
html
.
substring
(
idx
,
idx
+
100
));
error
(
fileName
,
"
U
nsupported <a ?: "
+
html
.
substring
(
idx
,
idx
+
100
));
}
}
}
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
9b9efb99
...
...
@@ -612,4 +612,5 @@ locals multianewarray icmpne fneg faload ifeq decompiler zeroes forgot
modern slight boost characteristics significantly gae vfs centrally ten
approach risky getters suxxess gmb delegate delegating delegates collisions
linkage superfluous disallow scoop moebius inputs copilot dmoebius leod jenkov
jakob poker docware peter unstable measurable scramble reissued recreation
\ No newline at end of file
jakob poker docware peter unstable measurable scramble reissued recreation
scrambling distinguish official
\ No newline at end of file
h2/src/tools/org/h2/build/doclet/Doclet.java
浏览文件 @
9b9efb99
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论