1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-15 22:22:17 +03:00
Files
mariadb-columnstore-engine/mysql/queries/working_dml/misc/bug2741.sql
2016-01-06 14:08:59 -06:00

17 lines
825 B
SQL

set autocommit=0;
select count(*) from nation where n_nationkey * (n_regionkey > 0) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 0) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 0) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 2) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 2) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 2) = 0;
update nation set n_regionkey = n_nationkey where n_nationkey * (n_regionkey > 0) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 0) = 0;
select * from nation;
rollback;
update nation set n_regionkey = n_nationkey where n_nationkey * (n_regionkey > 2) = 0;
select count(*) from nation where n_nationkey * (n_regionkey > 2) = 0;
select * from nation;
rollback;