Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a9d41543
提交
a9d41543
authored
11月 28, 2012
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Spelling, re-order declarations, follow naming conventions
上级
dd184254
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
48 行增加
和
42 行删除
+48
-42
changelog.html
h2/src/docsrc/html/changelog.html
+1
-1
mvstore.html
h2/src/docsrc/html/mvstore.html
+1
-2
RunScriptCommand.java
h2/src/main/org/h2/command/dml/RunScriptCommand.java
+4
-4
DbContents.java
h2/src/main/org/h2/server/web/DbContents.java
+12
-12
WebApp.java
h2/src/main/org/h2/server/web/WebApp.java
+1
-1
TableFilter.java
h2/src/main/org/h2/table/TableFilter.java
+2
-2
DbUpgrade.java
h2/src/main/org/h2/upgrade/DbUpgrade.java
+4
-3
Utils.java
h2/src/main/org/h2/util/Utils.java
+3
-4
CompareMode.java
h2/src/main/org/h2/value/CompareMode.java
+3
-3
SpellChecker.java
h2/src/tools/org/h2/build/doc/SpellChecker.java
+4
-4
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+7
-0
HtmlConverter.java
h2/src/tools/org/h2/build/indexer/HtmlConverter.java
+6
-6
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
a9d41543
...
...
@@ -24,7 +24,7 @@ Change Log
</li><li>
Issue 417: H2 Console: the web session timeout didn't work, resulting in a memory leak.
This was only a problem if the H2 Console was run for a long time and many sessions were opened.
</li><li>
Issue 412: Running the Server tool with just the option "-browser" will now log a warning.
</li><li>
Issue 411: CloseWatcher registration was not concurency-safe.
</li><li>
Issue 411: CloseWatcher registration was not concur
r
ency-safe.
</li><li>
MySQL compatibility: support for CONCAT_WS.
Thanks a lot to litailang for the patch!
</li><li>
PostgreSQL compatibility: support for EXTRACT(WEEK FROM dateColumn).
...
...
h2/src/docsrc/html/mvstore.html
浏览文件 @
a9d41543
...
...
@@ -262,8 +262,7 @@ Due to using a log structured storage, there is no special case handling for lar
<h3>
BLOB Support
</h3>
<p>
There is a mechanism that stores BLOBs (large binary objects)
by splitting them into smaller blocks.
There is a mechanism that stores large binary objects by splitting them into smaller blocks.
This allows to store objects that don't fit in memory.
Streaming as well as random access reads on such objects are supported.
This tool is written on top of the store (only using the map interface).
...
...
h2/src/main/org/h2/command/dml/RunScriptCommand.java
浏览文件 @
a9d41543
...
...
@@ -23,13 +23,13 @@ import org.h2.util.ScriptReader;
*/
public
class
RunScriptCommand
extends
ScriptBase
{
/**
/**
* The byte order mark.
* 0xfeff because this is the Unicode char
* represented by the UTF-8 byte order mark (EF BB BF).
* 0xfeff because this is the Unicode char
* represented by the UTF-8 byte order mark (EF BB BF).
*/
private
static
final
char
UTF8_BOM
=
'\
uFEFF
'
;
private
String
charset
=
Constants
.
UTF8
;
public
RunScriptCommand
(
Session
session
)
{
...
...
h2/src/main/org/h2/server/web/DbContents.java
浏览文件 @
a9d41543
...
...
@@ -43,34 +43,34 @@ public class DbContents {
boolean
isH2
;
/**
* True if this is a
H2 database in MySQL mod
e.
* True if this is a
PostgreSQL databas
e.
*/
private
boolean
isH2ModeMy
SQL
;
boolean
isPostgre
SQL
;
/**
* True if this is a
PostgreSQL
database.
* True if this is a
n Apache Derby
database.
*/
boolean
is
PostgreSQL
;
boolean
is
Derby
;
/**
* True if this is a
MySQL
database.
* True if this is a
n SQLite
database.
*/
private
boolean
isMySQL
;
boolean
isSQLite
;
/**
* True if this is a
n Apache Derby databas
e.
* True if this is a
H2 database in MySQL mod
e.
*/
boolean
isDerby
;
private
boolean
isH2ModeMySQL
;
/**
* True if this is a
Firebird
database.
* True if this is a
MySQL
database.
*/
private
boolean
is
Firebird
;
private
boolean
is
MySQL
;
/**
* True if this is a
n SQLite
database.
* True if this is a
Firebird
database.
*/
boolean
isSQLite
;
private
boolean
isFirebird
;
/**
* True if this is a MS SQL Server database.
...
...
h2/src/main/org/h2/server/web/WebApp.java
浏览文件 @
a9d41543
...
...
@@ -993,7 +993,7 @@ public class WebApp {
* @param size the number of statements
* @param buff the target buffer
*/
private
void
query
(
Connection
conn
,
String
s
,
int
i
,
int
size
,
StringBuilder
buff
)
{
void
query
(
Connection
conn
,
String
s
,
int
i
,
int
size
,
StringBuilder
buff
)
{
if
(!(
s
.
startsWith
(
"@"
)
&&
s
.
endsWith
(
"."
)))
{
buff
.
append
(
PageParser
.
escapeHtml
(
s
+
";"
)).
append
(
"<br />"
);
}
...
...
h2/src/main/org/h2/table/TableFilter.java
浏览文件 @
a9d41543
...
...
@@ -39,13 +39,13 @@ public class TableFilter implements ColumnResolver {
private
static
final
int
BEFORE_FIRST
=
0
,
FOUND
=
1
,
AFTER_LAST
=
2
,
NULL_ROW
=
3
;
private
Session
session
;
/**
* Whether this is a direct or indirect (nested) outer join
*/
protected
boolean
joinOuterIndirect
;
private
Session
session
;
private
final
Table
table
;
private
final
Select
select
;
private
String
alias
;
...
...
h2/src/main/org/h2/upgrade/DbUpgrade.java
浏览文件 @
a9d41543
...
...
@@ -26,12 +26,13 @@ import org.h2.util.Utils;
*/
public
class
DbUpgrade
{
private
static
final
boolean
upgradeClassesPresent
;
private
static
final
boolean
UPGRADE_CLASSES_PRESENT
;
private
static
boolean
scriptInTempDir
;
private
static
boolean
deleteOldDb
;
static
{
upgradeClassesPresent
=
Utils
.
isClassPresent
(
"org.h2.upgrade.v1_1.Driver"
);
UPGRADE_CLASSES_PRESENT
=
Utils
.
isClassPresent
(
"org.h2.upgrade.v1_1.Driver"
);
}
/**
...
...
@@ -45,7 +46,7 @@ public class DbUpgrade {
* @return the connection if connected with the old version (NO_UPGRADE)
*/
public
static
Connection
connectOrUpgrade
(
String
url
,
Properties
info
)
throws
SQLException
{
if
(!
upgradeClassesPresent
)
{
if
(!
UPGRADE_CLASSES_PRESENT
)
{
return
null
;
}
Properties
i2
=
new
Properties
();
...
...
h2/src/main/org/h2/util/Utils.java
浏览文件 @
a9d41543
...
...
@@ -59,11 +59,10 @@ public class Utils {
private
static
String
[]
allowedClassNamePrefixes
;
static
{
String
cls
=
SysProperties
.
JAVA_OBJECT_SERIALIZER
;
if
(
cls
!=
null
)
{
String
clazz
=
SysProperties
.
JAVA_OBJECT_SERIALIZER
;
if
(
clazz
!=
null
)
{
try
{
serializer
=
(
JavaObjectSerializer
)
loadUserClass
(
cl
s
).
newInstance
();
serializer
=
(
JavaObjectSerializer
)
loadUserClass
(
cl
azz
).
newInstance
();
}
catch
(
Exception
e
)
{
throw
DbException
.
convert
(
e
);
}
...
...
h2/src/main/org/h2/value/CompareMode.java
浏览文件 @
a9d41543
...
...
@@ -36,7 +36,7 @@ public class CompareMode {
private
static
CompareMode
lastUsed
;
private
static
final
boolean
canUse
ICU4J
;
private
static
final
boolean
CAN_USE_
ICU4J
;
static
{
boolean
b
=
false
;
...
...
@@ -46,7 +46,7 @@ public class CompareMode {
}
catch
(
Exception
e
)
{
// ignore
}
canUse
ICU4J
=
b
;
CAN_USE_
ICU4J
=
b
;
}
private
final
String
name
;
...
...
@@ -86,7 +86,7 @@ public class CompareMode {
useICU4J
=
false
;
name
=
name
.
substring
(
DEFAULT
.
length
());
}
else
{
useICU4J
=
canUse
ICU4J
;
useICU4J
=
CAN_USE_
ICU4J
;
}
if
(
useICU4J
)
{
lastUsed
=
new
CompareModeIcu4J
(
name
,
strength
);
...
...
h2/src/tools/org/h2/build/doc/SpellChecker.java
浏览文件 @
a9d41543
...
...
@@ -33,16 +33,16 @@ public class SpellChecker {
private
static
final
String
PREFIX_IGNORE
=
"abc"
;
private
static
final
String
[]
IGNORE_FILES
=
{
"mainWeb.html"
,
"pg_catalog.sql"
};
// these are public so we can set them during development testing
public
boolean
debug
;
public
boolean
printDictionary
;
private
final
HashSet
<
String
>
dictionary
=
new
HashSet
<
String
>();
private
final
HashSet
<
String
>
used
=
new
HashSet
<
String
>();
private
final
HashMap
<
String
,
Integer
>
unknown
=
new
HashMap
<
String
,
Integer
>();
private
boolean
addToDictionary
;
private
int
errorCount
;
private
int
contextCount
;
// these are public so we can set them during development testing
public
boolean
debug
;
public
boolean
printDictionary
;
/**
* This method is called when executing this application from the command
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
a9d41543
...
...
@@ -714,3 +714,10 @@ derive bounding greatly extreme terribly iterating pruned percentage
apart render cloned costly antialiasing antialias quercus rect mvr retina
sonatype deployed uffff bhat prashant doug lea retained inefficient segments
segment supplemental adjust evenly pick diehard mixes avalanche candidates
edition voytovych intersecting cow absent hickey fluid chen qian liberal
richard viktor structured continuous inherent kyoto contends abba optimised
rollbacks overtaking trivial mutation pitest rectangle uncommon deltas
purely intersection obviously cabinet berkeley configurable modular locality
subsystem persisting pit jdbm bigserial rtree mutationtest serializer feff mvstore
versioning
\ No newline at end of file
h2/src/tools/org/h2/build/indexer/HtmlConverter.java
浏览文件 @
a9d41543
...
...
@@ -14,8 +14,8 @@ import java.util.HashMap;
*/
public
class
HtmlConverter
{
private
static
final
HashMap
<
String
,
Character
>
charMap
=
new
HashMap
<
String
,
Character
>();
private
static
final
HashMap
<
Character
,
String
>
codeMap
=
new
HashMap
<
Character
,
String
>();
private
static
final
HashMap
<
String
,
Character
>
CHAR_MAP
=
new
HashMap
<
String
,
Character
>();
private
static
final
HashMap
<
Character
,
String
>
CODE_MAP
=
new
HashMap
<
Character
,
String
>();
private
static
final
String
[]
CHARS
=
{
"quot:34"
,
"amp:38"
,
"lt:60"
,
"gt:62"
,
"nbsp:160"
,
"iexcl:161"
,
"cent:162"
,
"pound:163"
,
"curren:164"
,
"yen:165"
,
"brvbar:166"
,
"sect:167"
,
"uml:168"
,
"copy:169"
,
"ordf:170"
,
...
...
@@ -60,8 +60,8 @@ public class HtmlConverter {
String
key
=
token
.
substring
(
0
,
idx
);
int
ch
=
Integer
.
parseInt
(
token
.
substring
(
idx
+
1
));
Character
character
=
Character
.
valueOf
((
char
)
ch
);
charMap
.
put
(
key
,
character
);
codeMap
.
put
(
character
,
key
);
CHAR_MAP
.
put
(
key
,
character
);
CODE_MAP
.
put
(
character
,
key
);
}
}
...
...
@@ -81,7 +81,7 @@ public class HtmlConverter {
StringBuilder
buff
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
s
.
length
();
i
++)
{
char
ch
=
s
.
charAt
(
i
);
String
token
=
codeMap
.
get
(
ch
);
String
token
=
CODE_MAP
.
get
(
ch
);
if
(
token
==
null
)
{
if
(
ch
<
128
)
{
buff
.
append
(
ch
);
...
...
@@ -155,7 +155,7 @@ public class HtmlConverter {
}
}
}
else
{
repl
=
charMap
.
get
(
key
);
repl
=
CHAR_MAP
.
get
(
key
);
}
if
(
repl
==
null
)
{
buff
.
append
(
"???"
+
key
+
"???"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论