You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Update mcs74_check_constraint.test
This commit is contained in:
committed by
KirillPerov
parent
e8beb6cf44
commit
c7bbb0a563
@ -12,6 +12,7 @@ CREATE DATABASE mcs74_db;
|
||||
USE mcs74_db;
|
||||
|
||||
CREATE TABLE t1(t1_int INT, t1_char CHAR(5), CHECK (t1_int > 0))ENGINE=Columnstore;
|
||||
--replace_regex /( COLLATE=latin1_swedish_ci)//
|
||||
SHOW CREATE TABLE t1;
|
||||
INSERT INTO t1 VALUES(NULL, '');
|
||||
INSERT INTO t1 VALUES(1, 'a');
|
||||
@ -22,6 +23,7 @@ INSERT INTO t1 VALUES(-1, 'c');
|
||||
SELECT * FROM t1;
|
||||
|
||||
CREATE TABLE t2(t1_char CHAR(10), CONSTRAINT c1 CHECK(t1_char = ''))ENGINE=Columnstore;
|
||||
--replace_regex /( COLLATE=latin1_swedish_ci)//
|
||||
SHOW CREATE TABLE t2;
|
||||
INSERT INTO t2 VALUES();
|
||||
INSERT INTO t2 VALUES('');
|
||||
@ -37,6 +39,7 @@ CREATE TABLE t3(
|
||||
CONSTRAINT t3_check_decimal CHECK(t3_decimal < 888.88),
|
||||
CONSTRAINT t3_check_blob CHECK(t3_blob = 'aaaa')
|
||||
)ENGINE=Columnstore;
|
||||
--replace_regex /( COLLATE=latin1_swedish_ci)//
|
||||
SHOW CREATE TABLE t3;
|
||||
INSERT INTO t3(t3_decimal) VALUES(NULL);
|
||||
INSERT INTO t3(t3_decimal) VALUES(888.87);
|
||||
|
Reference in New Issue
Block a user