Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
41b5225a
提交
41b5225a
authored
6 年前
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
address review comments
上级
4867529d
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
7 行删除
+9
-7
Select.java
h2/src/main/org/h2/command/dml/Select.java
+5
-3
AbstractAggregate.java
...c/main/org/h2/expression/aggregate/AbstractAggregate.java
+1
-1
DataAnalysisOperation.java
...ain/org/h2/expression/analysis/DataAnalysisOperation.java
+2
-2
TransactionStore.java
h2/src/main/org/h2/mvstore/tx/TransactionStore.java
+1
-1
没有找到文件。
h2/src/main/org/h2/command/dml/Select.java
浏览文件 @
41b5225a
...
...
@@ -115,7 +115,8 @@ public class Select extends Query {
private
int
[]
groupByCopies
;
/**
* Whether this query contains aggregate functions.
* This flag is set when SELECT statement contains (non-window) aggregate
* functions, GROUP BY clause or HAVING clause.
*/
boolean
isGroupQuery
;
private
boolean
isGroupSortedQuery
;
...
...
@@ -176,7 +177,8 @@ public class Select extends Query {
}
/**
* Called if this query contains aggregate functions.
* Set when SELECT statement contains (non-window) aggregate functions,
* GROUP BY clause or HAVING clause.
*/
public
void
setGroupQuery
()
{
isGroupQuery
=
true
;
...
...
@@ -484,7 +486,7 @@ public class Select extends Query {
/**
* Update any aggregate expressions with the query stage.
* @param columnCount number of columns
* @param stage s
tage of query (window or normal)
* @param stage s
ee STAGE_RESET/STAGE_GROUP/STAGE_WINDOW in DataAnalysisOperation
*/
void
updateAgg
(
int
columnCount
,
int
stage
)
{
for
(
int
i
=
0
;
i
<
columnCount
;
i
++)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/expression/aggregate/AbstractAggregate.java
浏览文件 @
41b5225a
...
...
@@ -31,7 +31,7 @@ public abstract class AbstractAggregate extends DataAnalysisOperation {
protected
final
boolean
distinct
;
/**
* FILTER condition for aggregate
/window
* FILTER condition for aggregate
*/
protected
Expression
filterCondition
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/expression/analysis/DataAnalysisOperation.java
浏览文件 @
41b5225a
...
...
@@ -50,7 +50,7 @@ public abstract class DataAnalysisOperation extends Expression {
protected
final
Select
select
;
/**
*
Window clause / OVER
*
OVER clause
*/
protected
Window
over
;
...
...
@@ -426,7 +426,7 @@ public abstract class DataAnalysisOperation extends Expression {
ArrayList
<
Value
[]>
ordered
,
int
rowIdColumn
);
/**
* Used to create SQL for the OVER
part of the command
.
* Used to create SQL for the OVER
and FILTER clauses
.
*
* @param builder string builder
* @return the builder object
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/mvstore/tx/TransactionStore.java
浏览文件 @
41b5225a
...
...
@@ -729,7 +729,7 @@ public class TransactionStore {
VersionedValue
existingValue
,
VersionedValue
restoredValue
);
}
private
static
RollbackListener
ROLLBACK_LISTENER_NONE
=
new
RollbackListener
()
{
private
static
final
RollbackListener
ROLLBACK_LISTENER_NONE
=
new
RollbackListener
()
{
@Override
public
void
onRollback
(
MVMap
<
Object
,
VersionedValue
>
map
,
Object
key
,
VersionedValue
existingValue
,
VersionedValue
restoredValue
)
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论