Details
Description
Thx to Andreas Kretschmer for pointing out.
create table t1 (id int); create table t2 (id int); insert into t1 values(1),(2),(3); insert into t2 values(4),(5),(6) select x.id, message from (select id from t1) x left join (select id, 1 as message from t2) y on x.id=y.id where coalesce(message,0) <> 0; # 5.6.19-0ubuntu0.14.04.1 Empty set (0,01 sec) # 10.0.12-MariaDB-1~trusty-wsrep-log +------+---------+ | id | message | +------+---------+ | 1 | NULL | | 2 | NULL | | 3 | NULL | +------+---------+
Gliffy Diagrams
Attachments
Issue Links
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Thanks for the report.
As a workaround, please try to set optimizer_switch='derived_merge=off'.