Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
822f3b06
提交
822f3b06
authored
1月 17, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix bad identation and remove trailing whitespace
上级
15e348ea
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
21 行删除
+21
-21
changelog.html
h2/src/docsrc/html/changelog.html
+5
-5
TestGeneralCommonTableQueries.java
...rc/test/org/h2/test/db/TestGeneralCommonTableQueries.java
+7
-7
TestPersistentCommonTableExpressions.java
.../org/h2/test/db/TestPersistentCommonTableExpressions.java
+9
-9
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
822f3b06
...
...
@@ -23,7 +23,7 @@ Change Log
<ul>
<li>
Make ALL a reserved keyword
</li>
<li>
Issue #311: Avoid calling list.toArray(new X[list.size()]) for performance
<li>
Issue #311: Avoid calling list.toArray(new X[list.size()]) for performance
</li>
<li>
PR #715: Better getObject error message
</li>
...
...
@@ -43,11 +43,11 @@ Change Log
</li>
<li>
Issue #699: When using an index for sorting, the index is ignored when also using NULLS LAST/FIRST
</li>
<li>
Issue #697: FilePathDisk.newInputStream fails for contextual class loading
<li>
Issue #697: FilePathDisk.newInputStream fails for contextual class loading
</li>
<li>
Issue #695: jdbc:postgresql protocol connection issue in H2 Console Application in case of redshift driver in classpath
</li>
<li>
Fix 'file not closed' when using FILE_READ
<li>
Fix 'file not closed' when using FILE_READ
</li>
<li>
Fix bug in LinkSchema tool when object exists with same name in different schemas
</li>
...
...
@@ -57,9 +57,9 @@ Change Log
</li>
<li>
Issue #654: List ENUM type values in INFORMATION_SCHEMA.COLUMNS
</li>
<li>
Issue #650: Simple nested SELECT causes error for table with TIMESTAMP WITH TIMEZONE column
<li>
Issue #650: Simple nested SELECT causes error for table with TIMESTAMP WITH TIMEZONE column
</li>
<li>
Issue #654: List ENUM type values in INFORMATION_SCHEMA.COLUMNS
<li>
Issue #654: List ENUM type values in INFORMATION_SCHEMA.COLUMNS
</li>
<li>
Issue #668: Fail of an update command on large table with ENUM column
</li>
...
...
h2/src/test/org/h2/test/db/TestGeneralCommonTableQueries.java
浏览文件 @
822f3b06
...
...
@@ -554,13 +554,13 @@ public class TestGeneralCommonTableQueries extends AbstractBaseForCommonTableExp
config
=
backupConfig
;
}
}
private
void
testSimple3RowRecursiveQueryDropAllObjects
()
throws
Exception
{
private
void
testSimple3RowRecursiveQueryDropAllObjects
()
throws
Exception
{
String
[]
expectedRowData
=
new
String
[]{
"|6"
};
String
[]
expectedColumnTypes
=
new
String
[]{
"BIGINT"
};
String
[]
expectedColumnNames
=
new
String
[]{
"SUM(N)"
};
String
setupSQL
=
"DROP ALL OBJECTS;"
;
String
withQuery
=
"select sum(n) from ("
+
" with recursive r(n) as ("
...
...
@@ -574,8 +574,8 @@ public class TestGeneralCommonTableQueries extends AbstractBaseForCommonTableExp
int
maxRetries
=
10
;
int
expectedNumberOfRows
=
expectedRowData
.
length
;
testRepeatedQueryWithSetup
(
maxRetries
,
expectedRowData
,
expectedColumnNames
,
expectedNumberOfRows
,
setupSQL
,
withQuery
,
maxRetries
-
1
,
expectedColumnTypes
);
}
withQuery
,
maxRetries
-
1
,
expectedColumnTypes
);
}
}
h2/src/test/org/h2/test/db/TestPersistentCommonTableExpressions.java
浏览文件 @
822f3b06
...
...
@@ -28,7 +28,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
testPersistentNonRecursiveTableInCreateView
();
testPersistentRecursiveTableInCreateView
();
testPersistentNonRecursiveTableInCreateViewDropAllObjects
();
testPersistentRecursiveTableInCreateViewDropAllObjects
();
testPersistentRecursiveTableInCreateViewDropAllObjects
();
}
private
void
testRecursiveTable
()
throws
Exception
{
...
...
@@ -181,8 +181,8 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
testRepeatedQueryWithSetup
(
maxRetries
,
expectedRowData
,
expectedColumnNames
,
expectedNumberOfRows
,
setupSQL
,
withQuery
,
maxRetries
-
1
,
expectedColumnTypes
);
}
private
void
testPersistentNonRecursiveTableInCreateViewDropAllObjects
()
throws
Exception
{
private
void
testPersistentNonRecursiveTableInCreateViewDropAllObjects
()
throws
Exception
{
String
setupSQL
=
""
+
"DROP ALL OBJECTS; \n"
+
"CREATE TABLE my_table ( \n"
...
...
@@ -203,7 +203,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
+
"), \n"
+
"unused_cte AS ( SELECT 1 AS unUsedColumn ) \n"
+
"SELECT sub_tree_root_id, tree_level, parent_fk, child_fk FROM tree_cte_nr; \n"
;
String
withQuery
=
"SELECT * FROM v_my_nr_tree"
;
int
maxRetries
=
6
;
String
[]
expectedRowData
=
new
String
[]{
...
...
@@ -214,13 +214,13 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
"|121|0|12|121"
,
};
String
[]
expectedColumnNames
=
new
String
[]{
"SUB_TREE_ROOT_ID"
,
"TREE_LEVEL"
,
"PARENT_FK"
,
"CHILD_FK"
};
String
[]
expectedColumnTypes
=
new
String
[]{
"INTEGER"
,
"INTEGER"
,
"INTEGER"
,
"INTEGER"
};
String
[]
expectedColumnTypes
=
new
String
[]{
"INTEGER"
,
"INTEGER"
,
"INTEGER"
,
"INTEGER"
};
int
expectedNumberOfRows
=
5
;
testRepeatedQueryWithSetup
(
maxRetries
,
expectedRowData
,
expectedColumnNames
,
expectedNumberOfRows
,
setupSQL
,
withQuery
,
maxRetries
-
1
,
expectedColumnTypes
);
}
private
void
testPersistentRecursiveTableInCreateViewDropAllObjects
()
throws
Exception
{
private
void
testPersistentRecursiveTableInCreateViewDropAllObjects
()
throws
Exception
{
String
setuoSQL
=
"--SET TRACE_LEVEL_SYSTEM_OUT 3;\n"
+
"DROP ALL OBJECTS; \n"
+
"CREATE TABLE my_tree ( \n"
...
...
@@ -245,7 +245,7 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
+
"), \n"
+
"unused_cte AS ( SELECT 1 AS unUsedColumn ) \n"
+
"SELECT sub_tree_root_id, tree_level, parent_fk, child_fk FROM tree_cte; \n"
;
String
withQuery
=
"SELECT * FROM v_my_tree"
;
int
maxRetries
=
4
;
String
[]
expectedRowData
=
new
String
[]{
"|1|0|null|1"
,
...
...
@@ -261,9 +261,9 @@ public class TestPersistentCommonTableExpressions extends AbstractBaseForCommonT
"|1|2|null|121"
};
String
[]
expectedColumnNames
=
new
String
[]{
"SUB_TREE_ROOT_ID"
,
"TREE_LEVEL"
,
"PARENT_FK"
,
"CHILD_FK"
};
String
[]
expectedColumnTypes
=
new
String
[]{
"INTEGER"
,
"INTEGER"
,
"INTEGER"
,
"INTEGER"
};
String
[]
expectedColumnTypes
=
new
String
[]{
"INTEGER"
,
"INTEGER"
,
"INTEGER"
,
"INTEGER"
};
int
expectedNumberOfRows
=
11
;
testRepeatedQueryWithSetup
(
maxRetries
,
expectedRowData
,
expectedColumnNames
,
expectedNumberOfRows
,
setuoSQL
,
withQuery
,
maxRetries
-
1
,
expectedColumnTypes
);
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论