Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
c43e8b6d
提交
c43e8b6d
authored
7月 26, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
451fcbd4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
39 行增加
和
30 行删除
+39
-30
changelog.html
h2/src/docsrc/html/changelog.html
+8
-1
tutorial.html
h2/src/docsrc/html/tutorial.html
+5
-3
Parser.java
h2/src/main/org/h2/command/Parser.java
+26
-26
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
c43e8b6d
...
...
@@ -16,7 +16,14 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
ORDER BY on tableName.columnName didn't work correctly if the column
<ul><li>
ResultSetMetaData.getColumnClassName now returns the correct
class name for BLOB and CLOB.
</li><li>
Fixed the Oracle mode: Oracle allows multiple rows only where
all columns of the unique index are NULL.
</li><li>
There is a problem with Hibernate when using Boolean columns.
A patch for Hibernate has been submitted at
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401
</li><li>
ORDER BY on tableName.columnName didn't work correctly if the column
name was also used as an alias.
</li><li>
H2 Console: The progress display when opening a database has been improved.
</li><li>
The error message when the server doesn't start has been improved.
...
...
h2/src/docsrc/html/tutorial.html
浏览文件 @
c43e8b6d
...
...
@@ -338,9 +338,11 @@ To stop remote server, remote connections must be enabled on the server.
<h2>
Using Hibernate
</h2>
<p>
This database supports Hibernate version 3.1 and newer. You can use the HSQLDB Dialect,
or the native H2 Dialect that is available in the file src/tools/org/h2/tools/hibernate/H2Dialect.txt.
The H2 dialect is included in newer version of Hibernate. For versions where the dialect is missing, you need to copy the file
into the folder src\org\hibernate\dialect (Hibernate 3.1), rename it to H2Dialect.java and re-compile hibernate.
or the native H2 Dialect. Unfortunately the H2 Dialect included in Hibernate is buggy. A
<a
href=
"http://opensource.atlassian.com/projects/hibernate/browse/HHH-3401"
>
patch
for Hibernate
</a>
has been submitted. The dialect for the newest version of Hibernate
is also available at src/tools/org/hibernate/dialect/H2Dialect.java.txt.
You can rename it to H2Dialect.java and include this as a patch in your application.
</p>
<br
/><a
name=
"web_applications"
></a>
...
...
h2/src/main/org/h2/command/Parser.java
浏览文件 @
c43e8b6d
...
...
@@ -1355,32 +1355,32 @@ public class Parser {
currentSelect
=
oldSelect
;
}
int
test
;
if
(
database
.
getMode
().
supportOffsetFetch
)
{
if
(
readIf
(
"OFFSET"
))
{
Select
temp
=
currentSelect
;
// make sure aggregate functions will not work here
currentSelect
=
null
;
command
.
setOffset
(
readExpression
().
optimize
(
session
));
if
(!
readIf
(
"ROW"
))
{
read
(
"ROWS"
);
}
currentSelect
=
temp
;
}
if
(
readIf
(
"FETCH"
))
{
Select
temp
=
currentSelect
;
// make sure aggregate functions will not work here
currentSelect
=
null
;
if
(
readIf
(
"FIRST"
))
{
Expression
limit
=
readExpression
().
optimize
(
session
);
command
.
setLimit
(
limit
);
if
(!
readIf
(
"ROW"
))
{
read
(
"ROWS"
);
}
readIf
(
"ONLY"
);
}
currentSelect
=
temp
;
}
}
//
if (database.getMode().supportOffsetFetch) {
//
if (readIf("OFFSET")) {
//
Select temp = currentSelect;
//
// make sure aggregate functions will not work here
//
currentSelect = null;
//
command.setOffset(readExpression().optimize(session));
//
if (!readIf("ROW")) {
//
read("ROWS");
//
}
//
currentSelect = temp;
//
}
//
if (readIf("FETCH")) {
//
Select temp = currentSelect;
//
// make sure aggregate functions will not work here
//
currentSelect = null;
//
if (readIf("FIRST")) {
//
Expression limit = readExpression().optimize(session);
//
command.setLimit(limit);
//
if (!readIf("ROW")) {
//
read("ROWS");
//
}
//
readIf("ONLY");
//
}
//
currentSelect = temp;
//
}
//
}
if
(
readIf
(
"LIMIT"
))
{
Select
temp
=
currentSelect
;
// make sure aggregate functions will not work here
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论