mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-06-01 22:41:43 +03:00
83 lines
2.6 KiB
Plaintext
83 lines
2.6 KiB
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: bug3998.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
USE tpch1;
|
|
#
|
|
--disable_warnings
|
|
drop table if exists bug3998a;
|
|
drop table if exists bug3998b;
|
|
drop table if exists bug3998c;
|
|
drop table if exists bug3998d;
|
|
--enable_warnings
|
|
|
|
create table bug3998a (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998a values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
|
|
select * from bug3998a;
|
|
|
|
create table bug3998b (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998b values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
|
|
select * from bug3998b;
|
|
|
|
create table bug3998c (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998c values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
|
|
select * from bug3998c;
|
|
|
|
create table bug3998d (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998d values (1,1), (2,1), (5, 1), (null,1), (null, null);
|
|
select * from bug3998d;
|
|
|
|
update bug3998a left join bug3998d on bug3998a.c1 = bug3998d.c1 set bug3998a.c1=9;
|
|
select * from bug3998a;
|
|
|
|
update bug3998b join bug3998d on bug3998b.c1 = bug3998d.c1 set bug3998b.c1=9;
|
|
select * from bug3998b;
|
|
|
|
update bug3998c right join bug3998d on bug3998c.c1 = bug3998d.c1 set bug3998c.c1=9;
|
|
select * from bug3998c;
|
|
|
|
--disable_warnings
|
|
drop table if exists bug3998a;
|
|
drop table if exists bug3998b;
|
|
drop table if exists bug3998c;
|
|
drop table if exists bug3998d;
|
|
--enable_warnings
|
|
|
|
create table bug3998a (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998a values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
|
|
select * from bug3998a;
|
|
|
|
create table bug3998b (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998b values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
|
|
select * from bug3998b;
|
|
|
|
create table bug3998c (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998c values (0,0), (1,1), (2,1), (3, 1), (null,1), (null, null);
|
|
select * from bug3998c;
|
|
|
|
create table bug3998d (c1 int, c2 int) engine=columnstore;
|
|
insert into bug3998d values (1,1), (2,1), (5, 1), (null,1), (null, null);
|
|
select * from bug3998d;
|
|
|
|
delete a from bug3998a a left join bug3998d d on a.c1 = d.c1;
|
|
select * from bug3998a;
|
|
|
|
delete b from bug3998b b join bug3998d d on b.c1 = d.c1;
|
|
select * from bug3998b;
|
|
|
|
delete c from bug3998c c right join bug3998d d on c.c1 = d.c1;
|
|
select * from bug3998c;
|
|
|
|
--disable_warnings
|
|
drop table if exists bug3998a;
|
|
drop table if exists bug3998b;
|
|
drop table if exists bug3998c;
|
|
drop table if exists bug3998d;
|
|
--enable_warnings
|
|
#
|
|
|