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:
28
mysql-test/columnstore/basic/t/mcs265_subtime_function.test
Normal file
28
mysql-test/columnstore/basic/t/mcs265_subtime_function.test
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# SUBTIME() function
|
||||
# Author: Bharath, bharath.bokka@mariadb.com
|
||||
#
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcs265_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcs265_db;
|
||||
USE mcs265_db;
|
||||
|
||||
CREATE TABLE t1(t1_d DATE, t1_t TIME, t1_dt DATETIME)ENGINE=Columnstore;
|
||||
INSERT INTO t1 VALUES(NULL, NULL, NULL);
|
||||
INSERT INTO t1 VALUES('2222-11-11', '12:12:12', '2020-11-11 12:12:12');
|
||||
INSERT INTO t1 VALUES('2020-01-01', '11:11:11', '2020-12-31 12:34:56');
|
||||
INSERT INTO t1 VALUES('2016-02-01', '11:11:11', '2017-02-01 12:12:12');
|
||||
|
||||
SELECT SUBTIME('1990-09-24 19:52:17', '1 03:33:33') FROM t1 LIMIT 1;
|
||||
SELECT SUBTIME('19:52:17', '03:33:33') FROM t1 LIMIT 1;
|
||||
|
||||
SELECT t1_d, SUBTIME(t1_d, '1 00:11:11.7101') FROM t1 ORDER BY 1;
|
||||
SELECT t1_dt, SUBTIME(t1_dt, '1 11:11:11') FROM t1 ORDER BY 1;
|
||||
SELECT t1_t, SUBTIME(t1_t, '00:11:11.7101') FROM t1 ORDER BY 1;
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs265_db;
|
Reference in New Issue
Block a user