提交 3f62638a authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix tests for Java 7

上级 b244ed67
...@@ -63,24 +63,24 @@ INSERT INTO TEST VALUES ...@@ -63,24 +63,24 @@ INSERT INTO TEST VALUES
(32, 3); (32, 3);
> update count: 6 > update count: 6
SELECT ROW_NUMBER() OVER (ORDER BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING SUM(ID) = 12; SELECT ROW_NUMBER() OVER (ORDER /**/ BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING SUM(ID) = 12;
> ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID) > ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID)
> ------------------------------------- ------- > ------------------------------------- -------
> 1 12 > 1 12
> rows (ordered): 1 > rows: 1
SELECT ROW_NUMBER() OVER (ORDER BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING CATEGORY = 2; SELECT ROW_NUMBER() OVER (ORDER /**/ BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING CATEGORY = 2;
> ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID) > ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID)
> ------------------------------------- ------- > ------------------------------------- -------
> 1 12 > 1 12
> rows (ordered): 1 > rows: 1
SELECT ROW_NUMBER() OVER (ORDER BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING CATEGORY > 1; SELECT ROW_NUMBER() OVER (ORDER /**/ BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING CATEGORY > 1;
> ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID) > ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID)
> ------------------------------------- ------- > ------------------------------------- -------
> 1 12 > 1 12
> 2 48 > 2 48
> rows (ordered): 2 > rows: 2
DROP TABLE TEST; DROP TABLE TEST;
> ok > ok
...@@ -97,17 +97,17 @@ INSERT INTO TEST VALUES ...@@ -97,17 +97,17 @@ INSERT INTO TEST VALUES
(32, FALSE); (32, FALSE);
> update count: 6 > update count: 6
SELECT ROW_NUMBER() OVER (ORDER BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING SUM(ID) = 12; SELECT ROW_NUMBER() OVER (ORDER /**/ BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING SUM(ID) = 12;
> ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID) > ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID)
> ------------------------------------- ------- > ------------------------------------- -------
> 1 12 > 1 12
> rows (ordered): 1 > rows: 1
SELECT ROW_NUMBER() OVER (ORDER BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING CATEGORY; SELECT ROW_NUMBER() OVER (ORDER /**/ BY CATEGORY), SUM(ID) FROM TEST GROUP BY CATEGORY HAVING CATEGORY;
> ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID) > ROW_NUMBER() OVER (ORDER BY CATEGORY) SUM(ID)
> ------------------------------------- ------- > ------------------------------------- -------
> 1 12 > 1 12
> rows (ordered): 1 > rows: 1
DROP TABLE TEST; DROP TABLE TEST;
> ok > ok
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论