summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_time.result
diff options
context:
space:
mode:
authorSergey Glukhov <sergey.glukhov@oracle.com>2011-03-30 11:08:35 +0400
committerSergey Glukhov <sergey.glukhov@oracle.com>2011-03-30 11:08:35 +0400
commitfbed52c1ba3041c8d24a0ca4c09950135f202f25 (patch)
tree7233c471ff3fceceecf0429afe7243e083304e13 /mysql-test/r/func_time.result
parent778a605af3f5f5044e1ef933086c84285ff6d57a (diff)
downloadmariadb-git-fbed52c1ba3041c8d24a0ca4c09950135f202f25.tar.gz
Bug#11766124 59164: VALGRIND: UNINITIALIZED VALUE IN NUMBER_TO_DATETIME
Valgrind warning happens due to missing NULL value check in Item::get_date. The fix is to add this check.
Diffstat (limited to 'mysql-test/r/func_time.result')
-rw-r--r--mysql-test/r/func_time.result6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_time.result b/mysql-test/r/func_time.result
index fd543ba4308..f67171af99f 100644
--- a/mysql-test/r/func_time.result
+++ b/mysql-test/r/func_time.result
@@ -1399,4 +1399,10 @@ NULL
SELECT CAST((MONTH(FROM_UNIXTIME(@@GLOBAL.SQL_MODE))) AS BINARY(1025));
CAST((MONTH(FROM_UNIXTIME(@@GLOBAL.SQL_MODE))) AS BINARY(1025))
NULL
+#
+# Bug#11766124 59164: VALGRIND: UNINITIALIZED VALUE IN NUMBER_TO_DATETIME
+#
+SELECT ADDDATE(MONTH(FROM_UNIXTIME(NULL)),INTERVAL 1 HOUR);
+ADDDATE(MONTH(FROM_UNIXTIME(NULL)),INTERVAL 1 HOUR)
+NULL
End of 5.1 tests