提交 f805561a authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 322: Left joins didn't work when used as subquery in the form clause.

上级 9b9baac8
......@@ -995,8 +995,11 @@ public class Select extends Query {
buff.resetCount();
int i = 0;
for (TableFilter f : topFilters) {
do {
buff.appendExceptFirst("\n");
buff.append(f.getPlanSQL(i++ > 0));
f = f.getJoin();
} while (f != null);
}
}
if (condition != null) {
......
create table a(x int);
create table b(x int);
select count(*) from (select b.x from a left join b);
> 0;
drop table a, b;
select count(distinct now()) c from system_range(1, 100), system_range(1, 1000);
> 1;
select {fn TIMESTAMPADD(SQL_TSI_DAY, 1, {ts '2011-10-20 20:30:40.001'})};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论