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:
29
mysql-test/columnstore/basic/r/mcs184_day_function.result
Normal file
29
mysql-test/columnstore/basic/r/mcs184_day_function.result
Normal file
@ -0,0 +1,29 @@
|
||||
DROP DATABASE IF EXISTS mcs184_db;
|
||||
CREATE DATABASE mcs184_db;
|
||||
USE mcs184_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;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` date DEFAULT NULL,
|
||||
`b` datetime DEFAULT NULL
|
||||
) ENGINE=Columnstore DEFAULT CHARSET=latin1
|
||||
SELECT DAY('1212-12-12 11:11:11');
|
||||
DAY('1212-12-12 11:11:11')
|
||||
12
|
||||
SELECT DAY('2020-12-22');
|
||||
DAY('2020-12-22')
|
||||
22
|
||||
SELECT a, DAY(a) FROM t1 ORDER BY 1;
|
||||
a DAY(a)
|
||||
0000-00-00 0
|
||||
1212-12-12 12
|
||||
3333-03-03 3
|
||||
SELECT b, DAY(b) FROM t1 ORDER BY 1;
|
||||
b DAY(b)
|
||||
0000-00-00 00:00:00 0
|
||||
1111-11-11 11:11:11 11
|
||||
3333-03-03 03:33:33 3
|
||||
DROP DATABASE mcs184_db;
|
Reference in New Issue
Block a user