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
MCOL-4674 Fix ColumnStore to run MTR tests in a build directory
This commit is contained in:
26
mysql-test/columnstore/basic/t/mcs225_replace_function.test
Normal file
26
mysql-test/columnstore/basic/t/mcs225_replace_function.test
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Test REPLACE() function
|
||||
# Author: Bharath, bharath.bokka@mariadb.com
|
||||
#
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcs225_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcs225_db;
|
||||
USE mcs225_db;
|
||||
|
||||
CREATE TABLE t1 (a INT, b CHAR(20))ENGINE=Columnstore;
|
||||
INSERT INTO t1 VALUES (NULL, ''),(1, 'aaa'),(2, 'abcabc'),(3, 'cccbba'),(4, 'dddd'),(5, 'pqrs');
|
||||
|
||||
SELECT REPLACE('abbcccb', 'b', 'z');
|
||||
SELECT REPLACE('xyz', 'z', 'ppp');
|
||||
|
||||
SELECT b, REPLACE(b, 'a', 'mcs') FROM t1 ORDER BY 1;
|
||||
SELECT b, REPLACE(b, 'b', 'oo') FROM t1 ORDER BY 1;
|
||||
SELECT b, REPLACE(b, 'pqrs', 'a') FROM t1 ORDER BY 1;
|
||||
SELECT b, REPLACE(b, 'dd', 'n') FROM t1 ORDER BY 1;
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs225_db;
|
Reference in New Issue
Block a user