Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
00101bcf
提交
00101bcf
authored
10 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Formatting
上级
8021286e
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
13 行增加
和
13 行删除
+13
-13
ErrorCode.java
h2/src/main/org/h2/api/ErrorCode.java
+1
-1
Expression.java
h2/src/main/org/h2/expression/Expression.java
+1
-1
IndexCondition.java
h2/src/main/org/h2/index/IndexCondition.java
+1
-1
RangeCursor.java
h2/src/main/org/h2/index/RangeCursor.java
+1
-1
_messages_en.prop
h2/src/main/org/h2/res/_messages_en.prop
+1
-1
RangeTable.java
h2/src/main/org/h2/table/RangeTable.java
+4
-4
TableFilter.java
h2/src/main/org/h2/table/TableFilter.java
+3
-3
TestFunctions.java
h2/src/test/org/h2/test/db/TestFunctions.java
+1
-1
没有找到文件。
h2/src/main/org/h2/api/ErrorCode.java
浏览文件 @
00101bcf
...
...
@@ -1904,7 +1904,7 @@ public class ErrorCode {
* The error with code <code>90142</code> is thrown when
* trying to set zero for step size.
*/
public
static
final
int
STEP_SIZE_
SHOUD
_NOT_BE_ZERO
=
90142
;
public
static
final
int
STEP_SIZE_
MUST
_NOT_BE_ZERO
=
90142
;
// next are 90039, 90051, 90056, 90110, 90122, 90143
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/expression/Expression.java
浏览文件 @
00101bcf
...
...
@@ -267,7 +267,7 @@ public abstract class Expression {
*
* @return if the related expression has the logic operator OR.
*/
public
boolean
isDisjunctive
(){
public
boolean
isDisjunctive
()
{
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/index/IndexCondition.java
浏览文件 @
00101bcf
...
...
@@ -338,7 +338,7 @@ public class IndexCondition {
* @param constantExpression if the inner node is a constant expression
* @return true if this is a equality condition
*/
public
boolean
isEquality
(
boolean
constantExpression
){
public
boolean
isEquality
(
boolean
constantExpression
)
{
switch
(
compareType
)
{
case
Comparison
.
EQUAL
:
case
Comparison
.
EQUAL_NULL_SAFE
:
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/index/RangeCursor.java
浏览文件 @
00101bcf
...
...
@@ -22,7 +22,7 @@ class RangeCursor implements Cursor {
private
final
long
start
,
end
,
step
;
RangeCursor
(
long
start
,
long
end
)
{
this
(
start
,
end
,
1
);
this
(
start
,
end
,
1
);
}
RangeCursor
(
long
start
,
long
end
,
long
step
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/res/_messages_en.prop
浏览文件 @
00101bcf
...
...
@@ -163,7 +163,7 @@
90139=The public static Java method was not found: {0}
90140=The result set is readonly. You may need to use conn.createStatement(.., ResultSet.CONCUR_UPDATABLE).
90141=Serializer cannot be changed because there is a data table: {0}
90142=Step size
should
not be zero
90142=Step size
must
not be zero
HY000=General error: {0}
HY004=Unknown data type: {0}
HYC00=Feature not supported: {0}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/table/RangeTable.java
浏览文件 @
00101bcf
...
...
@@ -56,12 +56,12 @@ public class RangeTable extends Table {
}
public
RangeTable
(
Schema
schema
,
Expression
min
,
Expression
max
,
Expression
step
,
boolean
noColumns
)
{
Expression
step
,
boolean
noColumns
)
{
this
(
schema
,
min
,
max
,
noColumns
);
this
.
step
=
step
;
}
}
@Override
@Override
public
String
getDropSQL
()
{
return
null
;
}
...
...
@@ -151,7 +151,7 @@ public class RangeTable extends Table {
@Override
public
Index
getScanIndex
(
Session
session
)
{
if
(
getStep
(
session
)
==
0
)
{
throw
DbException
.
get
(
ErrorCode
.
STEP_SIZE_
SHOUD
_NOT_BE_ZERO
);
throw
DbException
.
get
(
ErrorCode
.
STEP_SIZE_
MUST
_NOT_BE_ZERO
);
}
return
new
RangeIndex
(
this
,
IndexColumn
.
wrap
(
columns
));
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/table/TableFilter.java
浏览文件 @
00101bcf
...
...
@@ -492,10 +492,10 @@ public class TableFilter implements ColumnResolver {
* @param column The column of the condition
* @return the filtered list
*/
public
ArrayList
<
IndexCondition
>
getIndexConditionsForColumn
(
Column
column
){
public
ArrayList
<
IndexCondition
>
getIndexConditionsForColumn
(
Column
column
)
{
ArrayList
<
IndexCondition
>
conditions
=
New
.
arrayList
(
indexConditions
.
size
());
for
(
IndexCondition
condition:
indexConditions
){
if
(
column
.
equals
(
condition
.
getColumn
())){
for
(
IndexCondition
condition:
indexConditions
)
{
if
(
column
.
equals
(
condition
.
getColumn
()))
{
conditions
.
add
(
condition
);
}
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/db/TestFunctions.java
浏览文件 @
00101bcf
...
...
@@ -1652,7 +1652,7 @@ public class TestFunctions extends TestBase implements AggregateFunction {
rs
=
stat
.
executeQuery
(
"select * from system_range(1,2,-1)"
);
assertFalse
(
rs
.
next
());
assertThrows
(
ErrorCode
.
STEP_SIZE_
SHOUD
_NOT_BE_ZERO
,
stat
).
executeQuery
(
assertThrows
(
ErrorCode
.
STEP_SIZE_
MUST
_NOT_BE_ZERO
,
stat
).
executeQuery
(
"select * from system_range(1,2,0)"
);
rs
=
stat
.
executeQuery
(
"select * from system_range(2,1,-1)"
);
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论