Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
f63f3101
提交
f63f3101
authored
12月 25, 2018
作者:
tledkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix review issues
上级
fcb43bb7
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
19 行删除
+19
-19
Parser.java
h2/src/main/org/h2/command/Parser.java
+1
-1
Query.java
h2/src/main/org/h2/command/dml/Query.java
+5
-5
Select.java
h2/src/main/org/h2/command/dml/Select.java
+6
-6
SelectGroups.java
h2/src/main/org/h2/command/dml/SelectGroups.java
+1
-1
SimpleResult.java
h2/src/main/org/h2/result/SimpleResult.java
+6
-6
没有找到文件。
h2/src/main/org/h2/command/Parser.java
浏览文件 @
f63f3101
...
@@ -6945,7 +6945,7 @@ public class Parser {
...
@@ -6945,7 +6945,7 @@ public class Parser {
* @see <a href="https://en.wikipedia.org/wiki/DUAL_table">Wikipedia: DUAL table</a>
* @see <a href="https://en.wikipedia.org/wiki/DUAL_table">Wikipedia: DUAL table</a>
*/
*/
boolean
isDualTable
(
String
tableName
)
{
boolean
isDualTable
(
String
tableName
)
{
return
((
schemaName
==
null
||
equalsToken
(
schemaName
,
"SYS"
))
&&
equalsToken
(
"
F
"
,
tableName
))
return
((
schemaName
==
null
||
equalsToken
(
schemaName
,
"SYS"
))
&&
equalsToken
(
"
DUAL
"
,
tableName
))
||
(
database
.
getMode
().
sysDummy1
&&
(
schemaName
==
null
||
equalsToken
(
schemaName
,
"SYSIBM"
))
||
(
database
.
getMode
().
sysDummy1
&&
(
schemaName
==
null
||
equalsToken
(
schemaName
,
"SYSIBM"
))
&&
equalsToken
(
"SYSDUMMY1"
,
tableName
));
&&
equalsToken
(
"SYSDUMMY1"
,
tableName
));
}
}
...
...
h2/src/main/org/h2/command/dml/Query.java
浏览文件 @
f63f3101
...
@@ -53,7 +53,7 @@ public abstract class Query extends Prepared {
...
@@ -53,7 +53,7 @@ public abstract class Query extends Prepared {
Expression
[]
expressionArray
;
Expression
[]
expressionArray
;
/**
/**
* Describes
one element
of the ORDER BY clause of a query.
* Describes
elements
of the ORDER BY clause of a query.
*/
*/
ArrayList
<
SelectOrderBy
>
orderList
;
ArrayList
<
SelectOrderBy
>
orderList
;
...
@@ -403,7 +403,7 @@ public abstract class Query extends Prepared {
...
@@ -403,7 +403,7 @@ public abstract class Query extends Prepared {
}
}
fireBeforeSelectTriggers
();
fireBeforeSelectTriggers
();
if
(
noCache
||
!
session
.
getDatabase
().
getOptimizeReuseResults
()
||
if
(
noCache
||
!
session
.
getDatabase
().
getOptimizeReuseResults
()
||
(
session
.
isLazyQueryExecution
()
/* && !neverLazy*/
))
{
(
session
.
isLazyQueryExecution
()
&&
!
neverLazy
))
{
return
queryWithoutCacheLazyCheck
(
limit
,
target
);
return
queryWithoutCacheLazyCheck
(
limit
,
target
);
}
}
Value
[]
params
=
getParameterValues
();
Value
[]
params
=
getParameterValues
();
...
@@ -466,7 +466,7 @@ public abstract class Query extends Prepared {
...
@@ -466,7 +466,7 @@ public abstract class Query extends Prepared {
}
}
/**
/**
* Initialize the order or distinct expression.
* Initialize the order or distinct expression
s
.
*
*
* @param session the session
* @param session the session
* @param expressions the select list expressions
* @param expressions the select list expressions
...
@@ -474,7 +474,7 @@ public abstract class Query extends Prepared {
...
@@ -474,7 +474,7 @@ public abstract class Query extends Prepared {
* @param e the expression.
* @param e the expression.
* @param visible the number of visible columns in the select list
* @param visible the number of visible columns in the select list
* @param mustBeInResult all order by expressions must be in the select list
* @param mustBeInResult all order by expressions must be in the select list
* @param filters the table filters
1
* @param filters the table filters
.
* @return index on the expression in the {@link #expressions} list.
* @return index on the expression in the {@link #expressions} list.
*/
*/
static
int
initExpression
(
Session
session
,
ArrayList
<
Expression
>
expressions
,
static
int
initExpression
(
Session
session
,
ArrayList
<
Expression
>
expressions
,
...
@@ -711,7 +711,7 @@ public abstract class Query extends Prepared {
...
@@ -711,7 +711,7 @@ public abstract class Query extends Prepared {
/**
/**
* Appends query limits info to the plan.
* Appends query limits info to the plan.
*
*
* @param buff
sl
plan string builder.
* @param buff
query
plan string builder.
*/
*/
void
appendLimitToSQL
(
StringBuilder
buff
)
{
void
appendLimitToSQL
(
StringBuilder
buff
)
{
if
(
offsetExpr
!=
null
)
{
if
(
offsetExpr
!=
null
)
{
...
...
h2/src/main/org/h2/command/dml/Select.java
浏览文件 @
f63f3101
...
@@ -72,7 +72,7 @@ public class Select extends Query {
...
@@ -72,7 +72,7 @@ public class Select extends Query {
/**
/**
* The main (top) table filter.
* The main (top) table filter.
*/
*/
private
TableFilter
topTableFilter
;
TableFilter
topTableFilter
;
private
final
ArrayList
<
TableFilter
>
filters
=
Utils
.
newSmallArrayList
();
private
final
ArrayList
<
TableFilter
>
filters
=
Utils
.
newSmallArrayList
();
private
final
ArrayList
<
TableFilter
>
topFilters
=
Utils
.
newSmallArrayList
();
private
final
ArrayList
<
TableFilter
>
topFilters
=
Utils
.
newSmallArrayList
();
...
@@ -83,7 +83,7 @@ public class Select extends Query {
...
@@ -83,7 +83,7 @@ public class Select extends Query {
/**
/**
* The visible columns (the ones required in the result).
* The visible columns (the ones required in the result).
*/
*/
private
int
visibleColumnCount
;
int
visibleColumnCount
;
/**
/**
* {@code DISTINCT ON(...)} expressions.
* {@code DISTINCT ON(...)} expressions.
...
@@ -98,17 +98,17 @@ public class Select extends Query {
...
@@ -98,17 +98,17 @@ public class Select extends Query {
/**
/**
* The indexes of the group-by columns.
* The indexes of the group-by columns.
*/
*/
private
int
[]
groupIndex
;
int
[]
groupIndex
;
/**
/**
* Whether a column in the expression list is part of a group-by.
* Whether a column in the expression list is part of a group-by.
*/
*/
private
boolean
[]
groupByExpression
;
boolean
[]
groupByExpression
;
private
SelectGroups
groupData
;
SelectGroups
groupData
;
private
int
havingIndex
;
private
int
havingIndex
;
private
boolean
isGroupQuery
;
boolean
isGroupQuery
;
private
boolean
isGroupSortedQuery
;
private
boolean
isGroupSortedQuery
;
private
boolean
isWindowQuery
;
private
boolean
isWindowQuery
;
private
boolean
isForUpdate
,
isForUpdateMvcc
;
private
boolean
isForUpdate
,
isForUpdateMvcc
;
...
...
h2/src/main/org/h2/command/dml/SelectGroups.java
浏览文件 @
f63f3101
...
@@ -195,7 +195,7 @@ public abstract class SelectGroups {
...
@@ -195,7 +195,7 @@ public abstract class SelectGroups {
}
}
/**
/**
*
H2
session.
*
The
session.
*/
*/
final
Session
session
;
final
Session
session
;
...
...
h2/src/main/org/h2/result/SimpleResult.java
浏览文件 @
f63f3101
...
@@ -19,17 +19,17 @@ public class SimpleResult implements ResultInterface {
...
@@ -19,17 +19,17 @@ public class SimpleResult implements ResultInterface {
static
final
class
Column
{
static
final
class
Column
{
private
final
String
alias
;
final
String
alias
;
private
final
String
columnName
;
final
String
columnName
;
private
final
int
columnType
;
final
int
columnType
;
private
final
long
columnPrecision
;
final
long
columnPrecision
;
private
final
int
columnScale
;
final
int
columnScale
;
private
final
int
displaySize
;
final
int
displaySize
;
Column
(
String
alias
,
String
columnName
,
int
columnType
,
long
columnPrecision
,
int
columnScale
,
Column
(
String
alias
,
String
columnName
,
int
columnType
,
long
columnPrecision
,
int
columnScale
,
int
displaySize
)
{
int
displaySize
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论