1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-27 08:21:15 +03:00
Files
mariadb-columnstore-engine/mtr/basic/t/mcs250_to_seconds_function.test
mariadb-RomanNavrotskiy 73b4147cf3 move mtr suites here
2021-01-31 01:38:31 +02:00

31 lines
755 B
Plaintext

#
# Columnstore doesn't support TO_SECONDS() function
# Author: Bharath, bharath.bokka@mariadb.com
#
-- source ../include/have_columnstore.inc
--disable_warnings
DROP DATABASE IF EXISTS mcs250_db;
--enable_warnings
CREATE DATABASE mcs250_db;
USE mcs250_db;
CREATE TABLE t1
(
t1_INT INT,
t1_DATE DATE,
t1_DATETIME DATETIME
)ENGINE=Columnstore;
INSERT INTO t1 VALUES(1, '1997-12-12', '1997-12-12 22:12:02');
INSERT INTO t1 VALUES(2, '2001-1-1', '2001-1-1 23:59:59');
INSERT INTO t1 VALUES(3, '09-12-11', '09-12-11 01:08:59');
--error ER_CHECK_NOT_IMPLEMENTED
SELECT t1_DATE, TO_SECONDS(t1_DATE) FROM t1 ORDER BY 1;
--error ER_CHECK_NOT_IMPLEMENTED
SELECT t1_DATETIME, TO_SECONDS(t1_DATETIME) FROM t1 ORDER BY 1;
# Clean UP
DROP DATABASE mcs250_db;