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

In version 1.4.184, a bug was introduced that broke queries that have both joins…

In version 1.4.184, a bug was introduced that broke queries that have both joins and wildcards, for example: select * from dual join(select x from dual) on 1=1
上级 40b36ef5
......@@ -17,7 +17,9 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>-
<ul><li>In version 1.4.184, a bug was introduced that broke queries
that have both joins and wildcards, for example:
select * from dual join(select x from dual) on 1=1
</li></ul>
<h2>Version 1.4.185 Beta (2015-01-16)</h2>
......
......@@ -97,6 +97,9 @@ public class Wildcard extends Expression {
@Override
public boolean isEverything(ExpressionVisitor visitor) {
if (visitor.getType() == ExpressionVisitor.QUERY_COMPARABLE) {
return true;
}
throw DbException.throwInternalError();
}
......
......@@ -3,6 +3,12 @@
-- Initial Developer: H2 Group
--
--- special grammar and test cases ---------------------------------------------------------------------------------------------
select * from dual join(select x from dual) on 1=1;
> X X
> - -
> 1 1
> rows: 1
select 0 as x from system_range(1, 2) d group by d.x;
> X
> -
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论