Commit 39c6775a authored by Monty's avatar Monty

Fixed func_time.test that was depending on current time

parent 62c4a170
...@@ -3567,6 +3567,7 @@ DROP TABLE t1; ...@@ -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; ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment