1
0
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:
Aleksey Midenkov
2017-11-30 23:23:15 +03:00
parent e4b86780ae
commit b9225bb52c
3 changed files with 14 additions and 0 deletions

View File

@ -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);