1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4743 Regression: TIME_TO_SEC(const_expr) erroneosly returns 0

This commit is contained in:
Alexander Barkov
2021-06-02 15:08:20 +04:00
parent 8a68adcac4
commit d61690748e
5 changed files with 27 additions and 5 deletions

View File

@ -29,4 +29,14 @@ t1_DATETIME TIME_TO_SEC(t1_DATETIME)
1997-12-12 22:12:02 79922
2001-01-01 23:59:59 86399
2009-12-11 01:08:59 4139
DROP TABLE t1;
#
# MCOL-4743 Regression: TIME_TO_SEC(const_expr) erroneosly returns 0
#
CREATE TABLE t1 (a INT) ENGINE=ColumnStore;
INSERT INTO t1 VALUES (1);
SELECT TIME_TO_SEC('10:50:40.9999') FROM t1;
TIME_TO_SEC('10:50:40.9999')
39040.9999
DROP TABLE t1;
DROP DATABASE mcs251_db;