1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-05 15:41:14 +03:00

Fix(MCOL-4607): SEC_TO_TIME(wideDecimal) returns 0 in DECIMAL context (#3474)

This commit is contained in:
Akhmad Oripov
2025-03-31 16:05:07 +02:00
committed by GitHub
parent 1bcf63a436
commit a329f4d428
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,10 @@
DROP DATABASE IF EXISTS mcol_4607;
CREATE DATABASE mcol_4607;
USE mcol_4607;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a DECIMAL(30,1)) ENGINE=ColumnStore;
INSERT INTO t1 VALUES (1);
SELECT SEC_TO_TIME(a), SEC_TO_TIME(a)+0.0 FROM t1;
SEC_TO_TIME(a) SEC_TO_TIME(a)+0.0
00:00:01.0 1.0
DROP DATABASE mcol_4607;

View File

@ -0,0 +1,15 @@
--source ../include/have_columnstore.inc
--disable_warnings
DROP DATABASE IF EXISTS mcol_4607;
--enable_warnings
CREATE DATABASE mcol_4607;
USE mcol_4607;
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE t1 (a DECIMAL(30,1)) ENGINE=ColumnStore;
INSERT INTO t1 VALUES (1);
SELECT SEC_TO_TIME(a), SEC_TO_TIME(a)+0.0 FROM t1;
DROP DATABASE mcol_4607;