Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2f12cce5
提交
2f12cce5
authored
8月 20, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
177b071b
全部展开
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
1103 行增加
和
1049 行删除
+1103
-1049
changelog.html
h2/src/docsrc/html/changelog.html
+7
-1
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+354
-342
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+354
-342
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+347
-343
help.csv
h2/src/main/org/h2/res/help.csv
+6
-3
DateTimeUtils.java
h2/src/main/org/h2/util/DateTimeUtils.java
+7
-0
Build.java
h2/src/tools/org/h2/build/Build.java
+25
-16
CheckJavadoc.java
h2/src/tools/org/h2/build/code/CheckJavadoc.java
+1
-1
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+2
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
2f12cce5
...
...
@@ -16,7 +16,13 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
Column aliases can now be used in GROUP BY and HAVING.
<ul><li>
The build target 'build jarSmall' now includes the embedded database.
</li><li>
JdbcDataSource now keeps the password in a char array where possible.
</li><li>
ResultSet.absolute did not always work with large result sets.
</li><li>
Column aliases can now be used in GROUP BY and HAVING.
</li><li>
Jason Brittain has contributed MySQL date functions. Thanks a lot!
They are not in the h2.jar file currently, but in src/tools/org/h2/mode/FunctionsMySQL.java.
To install, add this class to the classpath and call FunctionsMySQL.register(conn) in the Java code.
</li></ul>
<h2>
Version 1.0.77 (2008-08-16)
</h2>
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
2f12cce5
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
2f12cce5
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
2f12cce5
差异被折叠。
点击展开。
h2/src/main/org/h2/res/help.csv
浏览文件 @
2f12cce5
...
...
@@ -363,10 +363,13 @@ The class and the method must both be public, and the method must be static.
Admin rights are required to execute this command.
If the first parameter of the Java function is a java.sql.Connection, then
the current to the database is provided. This connection must not be closed.
Functions may be overloaded, that means multiple functions with the same name may exist.
In this case, each function must have a different parameter count
.
If the class contains multiple methods with the given name but different parameter count,
all methods are mapped
.
","
CREATE ALIAS MY_SQRT FOR ""java.lang.Math.sqrt""
CREATE ALIAS MY_SQRT FOR ""java.lang.Math.sqrt"";
CREATE ALIAS GET_SYSTEM_PROPERTY FOR ""java.lang.System.getProperty"";
CALL GET_SYSTEM_PROPERTY('java.class.path');
CALL GET_SYSTEM_PROPERTY('com.acme.test', 'true');
"
"Commands (DDL)","CREATE CONSTANT","
...
...
h2/src/main/org/h2/util/DateTimeUtils.java
浏览文件 @
2f12cce5
...
...
@@ -122,6 +122,13 @@ public class DateTimeUtils {
return
ValueTimestamp
.
getNoCopy
(
y
);
}
/**
* Convert the date value to UTC using the given calendar.
*
* @param source the source calendar
* @param x the date
* @return the UTC number of milliseconds.
*/
private
static
long
getUniversalTime
(
Calendar
source
,
java
.
util
.
Date
x
)
throws
SQLException
{
if
(
source
==
null
)
{
throw
Message
.
getInvalidValueException
(
"calendar"
,
null
);
...
...
h2/src/tools/org/h2/build/Build.java
浏览文件 @
2f12cce5
...
...
@@ -78,7 +78,7 @@ public class Build extends BuildBase {
* Compile all classes
*/
public
void
compile
()
{
compile
(
true
,
false
);
compile
(
true
,
false
,
false
);
}
/**
...
...
@@ -92,11 +92,11 @@ public class Build extends BuildBase {
}
}
private
void
compile
(
boolean
debugInfo
,
boolean
clientOnly
)
{
private
void
compile
(
boolean
debugInfo
,
boolean
clientOnly
,
boolean
basicResourcesOnly
)
{
switchSource
();
clean
();
mkdir
(
"temp"
);
resources
(
clientOnly
);
resources
(
clientOnly
,
basicResourcesOnly
);
download
();
String
classpath
=
"temp"
+
File
.
pathSeparator
+
"ext/servlet-api-2.4.jar"
+
...
...
@@ -206,8 +206,10 @@ public class Build extends BuildBase {
compile
();
manifest
(
"H2 Database Engine"
,
"org.h2.tools.Console"
);
FileList
files
=
getFiles
(
"temp"
).
exclude
(
"temp/org/h2/dev/*"
).
exclude
(
"temp/org/h2/build/*"
).
exclude
(
"temp/org/h2/dev/*"
).
exclude
(
"temp/org/h2/jaqu/*"
).
exclude
(
"temp/org/h2/mode/*"
).
exclude
(
"temp/org/h2/samples/*"
).
exclude
(
"temp/org/h2/test/*"
).
exclude
(
"*.bat"
).
...
...
@@ -221,10 +223,12 @@ public class Build extends BuildBase {
* implementation.
*/
public
void
jarClient
()
{
compile
(
true
,
true
);
compile
(
true
,
true
,
false
);
FileList
files
=
getFiles
(
"temp"
).
exclude
(
"temp/org/h2/dev/*"
).
exclude
(
"temp/org/h2/build/*"
).
exclude
(
"temp/org/h2/dev/*"
).
exclude
(
"temp/org/h2/jaqu/*"
).
exclude
(
"temp/org/h2/mode/*"
).
exclude
(
"temp/org/h2/samples/*"
).
exclude
(
"temp/org/h2/test/*"
).
exclude
(
"*.bat"
).
...
...
@@ -241,20 +245,22 @@ public class Build extends BuildBase {
* Debug information is disabled.
*/
public
void
jarSmall
()
{
compile
(
false
,
false
);
compile
(
false
,
false
,
true
);
FileList
files
=
getFiles
(
"temp"
).
exclude
(
"temp/org/h2/
dev
/*"
).
exclude
(
"temp/org/h2/
bnf
/*"
).
exclude
(
"temp/org/h2/build/*"
).
exclude
(
"temp/org/h2/dev/*"
).
exclude
(
"temp/org/h2/fulltext/*"
).
exclude
(
"temp/org/h2/jaqu/*"
).
exclude
(
"temp/org/h2/jdbcx/*"
).
exclude
(
"temp/org/h2/mode/*"
).
exclude
(
"temp/org/h2/samples/*"
).
exclude
(
"temp/org/h2/server/*"
).
exclude
(
"temp/org/h2/test/*"
).
exclude
(
"temp/org/h2/tools/*"
).
exclude
(
"*.bat"
).
exclude
(
"*.sh"
).
exclude
(
"*.txt"
).
exclude
(
"temp/META-INF/*"
);
zip
(
"temp/h2classes.zip"
,
files
,
"temp"
,
true
,
true
);
manifest
(
"H2 Database Engine (Embedded)"
,
"org.h2.tools.Console\nClass-Path: h2classes.zip"
);
files
=
getFiles
(
"temp/h2classes.zip"
);
files
.
addAll
(
getFiles
(
"temp/META-INF"
));
exclude
(
"*.txt"
);
jar
(
"bin/h2small.jar"
,
files
,
"temp"
);
}
...
...
@@ -263,7 +269,7 @@ public class Build extends BuildBase {
* implementation. All other jar files do not include JaQu.
*/
public
void
jarJaqu
()
{
compile
(
true
,
false
);
compile
(
true
,
false
,
true
);
manifest
(
"H2 JaQu"
,
""
);
FileList
files
=
getFiles
(
"temp/org/h2/jaqu"
);
files
.
addAll
(
getFiles
(
"temp/META-INF/MANIFEST.MF"
));
...
...
@@ -368,12 +374,15 @@ public class Build extends BuildBase {
"-DgroupId=com.h2database"
});
}
private
void
resources
(
boolean
clientOnly
)
{
private
void
resources
(
boolean
clientOnly
,
boolean
basicOnly
)
{
FileList
files
=
getFiles
(
"src/main"
).
exclude
(
"*.MF"
).
exclude
(
"*.java"
).
exclude
(
"*/package.html"
).
exclude
(
"*/java.sql.Driver"
);
if
(
basicOnly
)
{
files
=
files
.
keep
(
"src/main/org/h2/res/_messages_en.*"
);
}
if
(
clientOnly
)
{
files
=
files
.
exclude
(
"src/main/org/h2/server/*"
);
}
...
...
h2/src/tools/org/h2/build/code/CheckJavadoc.java
浏览文件 @
2f12cce5
...
...
@@ -99,7 +99,7 @@ public class CheckJavadoc {
inComment
=
true
;
}
if
(
inComment
)
{
if
(
line
.
length
()
>
MAX_COMMENT_LINE_SIZE
)
{
if
(
line
.
length
()
>
MAX_COMMENT_LINE_SIZE
&&
!
line
.
trim
().
startsWith
(
"* http://"
)
)
{
System
.
out
.
println
(
"Long line : "
+
file
.
getAbsolutePath
()
+
" ("
+
file
.
getName
()
+
":"
+
lineNumber
+
")"
);
errorCount
++;
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
2f12cce5
...
...
@@ -556,4 +556,5 @@ harbor generics pojo annotations ecl subclipse jmx bean plugins team cha emma
nullsoft annotation cover scriptable guidelines consider batis coding
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
causing nopack water onto resolve ontoprise treatment sparql rdfs piman zen
owl rdf recommendations axiom fabric broker osoa epictetus
owl rdf recommendations axiom fabric broker osoa epictetus replacements
brittain wasn november unixtime ddd jason formatter
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论