1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00

30 lines
1.1 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug2876.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
--disable_warnings
drop table if exists bug2876;
--enable_warnings
create table bug2876(c1 int, c2 varchar(117))engine=columnstore;
insert into bug2876 values (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3);
insert into bug2876 values (1, null), (2, null), (3, null), (null, 1), (null, 2), (null, 3), (null, null);
select * from bug2876 where c1 = c2 order by 1, 2;
select * from bug2876 where c1 != c2 order by 1, 2;
select * from bug2876 where c1 < c2 order by 1, 2;
select * from bug2876 where c1 > c2 order by 1, 2;
select * from bug2876 where c1 <= c2 order by 1, 2;
select * from bug2876 where c1 >= c2 order by 1, 2;
delete from bug2876 where c1 = c2;
select * from bug2876 order by 1, 2;
--disable_warnings
drop table bug2876;
--enable_warnings
#