Commit 6c9d9832 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-4869 Wrong result of MAKETIME(0, 0, -0.1)

Adding a test case only.

The problem was fixed by:

  MDEV-4724 Some temporal functions do not preserve microseconds

modified:
  mysql-test/r/func_time.result
  mysql-test/t/func_time.test
parent 5d7b97b8
...@@ -2241,3 +2241,9 @@ SELECT * FROM t1; ...@@ -2241,3 +2241,9 @@ SELECT * FROM t1;
TIMESTAMP('00:00:00','10:10:10') TIMESTAMP(TIME('00:00:00'),'10:10:10') TIMESTAMP('00:00:00','10:10:10') TIMESTAMP(TIME('00:00:00'),'10:10:10')
NULL NULL NULL NULL
DROP TABLE t1; DROP TABLE t1;
#
# MDEV-4869 Wrong result of MAKETIME(0, 0, -0.1)
#
SELECT MAKETIME(0, 0, -0.1);
MAKETIME(0, 0, -0.1)
NULL
...@@ -1357,3 +1357,9 @@ CREATE TABLE t1 AS SELECT ...@@ -1357,3 +1357,9 @@ CREATE TABLE t1 AS SELECT
SHOW COLUMNS FROM t1; SHOW COLUMNS FROM t1;
SELECT * FROM t1; SELECT * FROM t1;
DROP TABLE t1; DROP TABLE t1;
--echo #
--echo # MDEV-4869 Wrong result of MAKETIME(0, 0, -0.1)
--echo #
SELECT MAKETIME(0, 0, -0.1);
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