提交 6af565fd authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #601 from andreitokar/issue#600

Fix for issue #600
...@@ -1460,6 +1460,7 @@ public class Select extends Query { ...@@ -1460,6 +1460,7 @@ public class Select extends Query {
} }
return row; return row;
} }
--rowNumber;
} }
return null; return null;
} }
......
...@@ -10761,3 +10761,16 @@ select * from test where year in (select distinct year from test order by year d ...@@ -10761,3 +10761,16 @@ select * from test where year in (select distinct year from test order by year d
drop table test; drop table test;
> ok > ok
----- Issue#600 -----
create table test as (select char(x) as str from system_range(48,90));
> ok
select row_number() over () as rnum, str from test where str = 'A';
> RNUM STR
> ---- ---
> 1 A
drop table test;
> ok
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论