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:
35
mysql-test/columnstore/basic/r/mcs284_hour_function.result
Normal file
35
mysql-test/columnstore/basic/r/mcs284_hour_function.result
Normal file
@ -0,0 +1,35 @@
|
||||
DROP DATABASE IF EXISTS mcs284_db;
|
||||
CREATE DATABASE mcs284_db;
|
||||
USE mcs284_db;
|
||||
CREATE TABLE t1
|
||||
(
|
||||
t1_DATE DATE,
|
||||
t1_TIME TIME,
|
||||
t1_DATETIME DATETIME
|
||||
)ENGINE=Columnstore;
|
||||
INSERT INTO t1 VALUES('1991-05-30', '01:00:50', '2020-12-11 06:08:59');
|
||||
INSERT INTO t1 VALUES('2991-10-13', '21:19:52', '1987-01-01 17:28:37');
|
||||
SELECT HOUR('2020-02-21') FROM t1 LIMIT 1;
|
||||
HOUR('2020-02-21')
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect time value: '2020-02-21'
|
||||
SELECT HOUR('11:12:13') FROM t1 LIMIT 1;
|
||||
HOUR('11:12:13')
|
||||
11
|
||||
SELECT HOUR('2020/02/11 13:12:13') FROM t1 LIMIT 1;
|
||||
HOUR('2020/02/11 13:12:13')
|
||||
13
|
||||
SELECT t1_DATE, HOUR(t1_DATE) FROM t1 ORDER BY 1;
|
||||
t1_DATE HOUR(t1_DATE)
|
||||
1991-05-30 0
|
||||
2991-10-13 0
|
||||
SELECT t1_DATETIME, HOUR(t1_DATETIME) FROM t1 ORDER BY 1;
|
||||
t1_DATETIME HOUR(t1_DATETIME)
|
||||
1987-01-01 17:28:37 17
|
||||
2020-12-11 06:08:59 6
|
||||
SELECT t1_TIME, HOUR(t1_TIME) FROM t1 ORDER BY 1;
|
||||
t1_TIME HOUR(t1_TIME)
|
||||
01:00:50 1
|
||||
21:19:52 21
|
||||
DROP DATABASE mcs284_db;
|
Reference in New Issue
Block a user