1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-09-01 01:22:04 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7200_regression_MCOL-1403.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

33 lines
1.1 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: MCOL-1403.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists mcol1403a;
drop table if exists mcol1403b;
create table mcol1403a (a int, b varchar(4)) engine=columnstore;
create table mcol1403b (a int, b char(20), c varchar(20)) engine=columnstore;
#-- Make sure we don't regress MCOL-1246
insert into mcol1403a values (1, 'ABC ');
select * from mcol1403a where b = 'ABC';
select * from mcol1403a where b like 'ABC';
select a, hex(b) from mcol1403a;
#-- Now for MCOL-1403
insert into mcol1403b values (1, 'Majestic12 ', 'Majestic12 ');
select * from mcol1403b where lower(b) like 'majestic12 ';
select * from mcol1403b where lower(c) like 'majestic12 ';
select concat(b, '#') from mcol1403b where b like '% ';
select concat(c, '#') from mcol1403b where c like '% ';
drop table mcol1403a;
drop table mcol1403b;
#