You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4674 Fix ColumnStore to run MTR tests in a build directory
This commit is contained in:
29
mysql-test/columnstore/basic/t/mcs118_charset_negative.test
Normal file
29
mysql-test/columnstore/basic/t/mcs118_charset_negative.test
Normal file
@ -0,0 +1,29 @@
|
||||
#
|
||||
# Test character type create table negative cases
|
||||
# Author: Bharath, bharath.bokka@mariadb.com
|
||||
#
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcs118_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcs118_db DEFAULT CHARACTER SET latin5;
|
||||
USE mcs118_db;
|
||||
|
||||
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET latin1, b VARCHAR(10) CHARACTER SET utf8)ENGINE=Columnstore;
|
||||
SHOW CREATE TABLE t1;
|
||||
|
||||
--error ER_CONFLICTING_DECLARATIONS
|
||||
ALTER TABLE t1 CONVERT TO CHARACTER SET utf8, CHARACTER SET latin1;
|
||||
--error ER_CONFLICTING_DECLARATIONS
|
||||
ALTER TABLE t1 CONVERT TO CHARACTER SET utf8, CHARACTER SET DEFAULT;
|
||||
--error ER_CONFLICTING_DECLARATIONS
|
||||
ALTER TABLE t1 CONVERT TO CHARACTER SET latin1, CHARACTER SET utf8;
|
||||
--error ER_CONFLICTING_DECLARATIONS
|
||||
ALTER TABLE t1 CONVERT TO CHARACTER SET latin1, CHARACTER SET DEFAULT;
|
||||
--error ER_CONFLICTING_DECLARATIONS
|
||||
ALTER TABLE t1 CONVERT TO CHARACTER SET DEFAULT, CHARACTER SET utf8;
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs118_db;
|
Reference in New Issue
Block a user