1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Making the test for MDEV-17854 independent from the host time zone

This commit is contained in:
Alexander Barkov
2018-11-28 10:46:19 +04:00
parent d6bcf3a4c8
commit 218c75eb1d
2 changed files with 5 additions and 1 deletions

View File

@ -6298,9 +6298,11 @@ TIME('- 01:00:00') TIME('- 1 01:00:00')
#
# MDEV-17854 Assertion `decimals <= 6' failed in my_time_fraction_remainder on SELECT with NULLIF and FROM_UNIXTIME on incorrect time
#
SET time_zone='+00:00';
SELECT NULLIF(FROM_UNIXTIME('foo'), '2012-12-12 21:10:14');
NULLIF(FROM_UNIXTIME('foo'), '2012-12-12 21:10:14')
1970-01-01 04:00:00
1970-01-01 00:00:00
Warnings:
Warning 1292 Truncated incorrect DECIMAL value: 'foo'
Warning 1292 Truncated incorrect DECIMAL value: 'foo'
SET time_zone=DEFAULT;