1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7202_regression_MCOL-1535.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
731 B
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: MCOL-1535.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
--disable_warnings
drop table if exists t2;
--enable_warnings
create table t2(id int, nm varchar(10)) engine=columnstore;
insert into t2 values( 1, 'AAA');
insert into t2 values( 2, 'BBB');
insert into t2 values( 3, 'CCC');
select
id,nm,
charset(nm),
collation(nm),
charset('AAA'),
collation('AAA'),
(case when nm='AAA' then 1 else 0 end) as nmchk1,
(case nm when 'AAA' then 1 else 0 end) as nmchk2
from t2;
drop table t2;
#