mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
SQL: outdated select_lex->where fix [#365 bug 5]
Affected tests (forced mode): main.index_merge_myisam After optimization versioning AND takes operands from WHERE AND leaving `select_lex->where` as empty dangling AND.
This commit is contained in:
@ -367,6 +367,12 @@ order by i;
|
||||
f
|
||||
0
|
||||
0
|
||||
### Issue #365, bug 5 (dangling AND)
|
||||
create or replace table t1 (a int);
|
||||
create or replace table t2 (b int) with system versioning;
|
||||
select * from t1
|
||||
where exists (select 1 from t2 where t2.b = t1.a and t2.b = t1.a);
|
||||
a
|
||||
drop view v1;
|
||||
drop table t1, t2;
|
||||
call innodb_verify_vtq(28);
|
||||
|
Reference in New Issue
Block a user