mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed func_time.test that was depending on current time
This commit is contained in:
@@ -3567,6 +3567,7 @@ DROP TABLE t1;
|
|||||||
#
|
#
|
||||||
# MDEV-15363 Wrong result for CAST(LAST_DAY(TIME'00:00:00') AS TIME)
|
# MDEV-15363 Wrong result for CAST(LAST_DAY(TIME'00:00:00') AS TIME)
|
||||||
#
|
#
|
||||||
|
set timestamp=unix_timestamp('2018-08-02 10:10:10');
|
||||||
SELECT
|
SELECT
|
||||||
LAST_DAY(TIME'00:00:00') AS c1,
|
LAST_DAY(TIME'00:00:00') AS c1,
|
||||||
CAST(CAST(LAST_DAY(TIME'00:00:00') AS DATE) AS TIME) AS c2,
|
CAST(CAST(LAST_DAY(TIME'00:00:00') AS DATE) AS TIME) AS c2,
|
||||||
|
@@ -2159,6 +2159,7 @@ DROP TABLE t1;
|
|||||||
--echo # MDEV-15363 Wrong result for CAST(LAST_DAY(TIME'00:00:00') AS TIME)
|
--echo # MDEV-15363 Wrong result for CAST(LAST_DAY(TIME'00:00:00') AS TIME)
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
set timestamp=unix_timestamp('2018-08-02 10:10:10');
|
||||||
SELECT
|
SELECT
|
||||||
LAST_DAY(TIME'00:00:00') AS c1,
|
LAST_DAY(TIME'00:00:00') AS c1,
|
||||||
CAST(CAST(LAST_DAY(TIME'00:00:00') AS DATE) AS TIME) AS c2,
|
CAST(CAST(LAST_DAY(TIME'00:00:00') AS DATE) AS TIME) AS c2,
|
||||||
|
Reference in New Issue
Block a user