1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

fix(utils): MCOL-4605 handle negative decimals in FROM_UNIXTIME (#3466)

This commit is contained in:
Amr Elmohamady
2025-03-28 00:11:16 +02:00
committed by GitHub
parent 1fdeb740c9
commit 2d69b49ba0
3 changed files with 16 additions and 0 deletions

View File

@ -18,6 +18,9 @@ FROM_UNIXTIME(0)
SELECT FROM_UNIXTIME(-1) FROM t1 LIMIT 1;
FROM_UNIXTIME(-1)
NULL
SELECT FROM_UNIXTIME(-0.1) FROM t1 LIMIT 1;
FROM_UNIXTIME(-0.1)
NULL
SELECT FROM_UNIXTIME(1) FROM t1 LIMIT 1;
FROM_UNIXTIME(1)
1970-01-01 00:00:01