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:
27
mysql-test/columnstore/basic/t/mcs183_date_function.test
Normal file
27
mysql-test/columnstore/basic/t/mcs183_date_function.test
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Test DATE function
|
||||
# Author: Bharath, bharath.bokka@mariadb.com
|
||||
#
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcs183_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcs183_db;
|
||||
USE mcs183_db;
|
||||
|
||||
SET default_storage_engine=Columnstore;
|
||||
|
||||
CREATE TABLE t1 (a DATE, b DATETIME);
|
||||
INSERT INTO t1 VALUES ('0-0-0', '0-0-0 0:0:0'), ('1212-12-12', '1111-11-11 11:11:11'), ('3333-03-03', '3333-3-3 3:33:33');
|
||||
SHOW CREATE TABLE t1;
|
||||
|
||||
SELECT DATE('1212-12-12 11:11:11');
|
||||
SELECT DATE('2020-12-22');
|
||||
|
||||
SELECT a, DATE(a) FROM t1 ORDER BY 1;
|
||||
SELECT b, DATE(b) FROM t1 ORDER BY 1;
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs183_db;
|
Reference in New Issue
Block a user