1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-29 03:22:01 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7100_regression_bug3563.test
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

50 lines
1.8 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug3563.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists qatabledecimal2byte;
drop table if exists qatabledecimal4byte;
drop table if exists qatabletinyint;
create table qatabledecimal2byte (col1 decimal(1), col2 decimal(4), col3 decimal(4,2)) engine=columnstore;
create table qatabledecimal4byte (col1 decimal(5), col2 decimal(9), col3 decimal(9,2)) engine=columnstore;
create table qatabletinyint (col numeric(2,0)) engine=columnstore;
insert into qatabledecimal2byte values(NULL,NULL,NULL);
insert into qatabledecimal2byte values(null,null,null);
insert into qatabledecimal2byte values(-9, -9999, -99.99);
insert into qatabledecimal2byte values(0, 0, 0);
insert into qatabledecimal2byte values(9, 9999, 99.99);
insert into qatabledecimal4byte values(NULL,NULL,NULL);
insert into qatabledecimal4byte values(null,null,null);
insert into qatabledecimal4byte values(-99999, -999999999, -9999999.99);
insert into qatabledecimal4byte values(0, 0, 0);
insert into qatabledecimal4byte values(99999, 999999999, 9999999.99);
insert into qatabletinyint values (NULL);
insert into qatabletinyint values (null);
insert into qatabletinyint values (-99);
insert into qatabletinyint values (-78);
insert into qatabletinyint values (0);
insert into qatabletinyint values (87);
insert into qatabletinyint values (99);
select * from qatabledecimal2byte;
select * from qatabledecimal4byte;
select * from qatabletinyint;
drop table if exists qatabledecimal2byte;
drop table if exists qatabledecimal4byte;
drop table if exists qatabletinyint;
#