# -------------------------------------------------------------- # # Test case migrated from regression test suite: bug3731.sql # # Author: Daniel Lee, daniel.lee@mariadb.com # -------------------------------------------------------------- # # --source ../include/have_columnstore.inc # USE tpch1; # select * from nation where not n_regionkey; select * from nation where not n_regionkey and not n_nationkey; select n_regionkey from nation where not n_regionkey or not n_nationkey; select n_nationkey from nation where n_nationkey > 3 and not n_regionkey; select n_nationkey from nation where not n_regionkey and n_nationkey > 3; select n_nationkey from nation where n_nationkey > 3 or not n_regionkey; select n_nationkey from nation where not (n_nationkey > 2 or n_regionkey < 3); select * from region where not r_regionkey > (select avg(n_regionkey) from nation); select * from region where not r_regionkey in (select n_regionkey from nation); select n_nationkey from nation where not (n_regionkey between 1 and 3) or not n_regionkey; select n_nationkey from nation where not (n_regionkey between 1 and 3) and not n_regionkey; select * from sub1 where c2 is null and c3 is not null; select if (not r_regionkey, 'no', 'yes') from region; select if (not r_regionkey < 2, 'no', 'yes') from region; #