summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@sun.com>2009-05-15 12:55:01 +0400
committerAlexey Kopytov <Alexey.Kopytov@sun.com>2009-05-15 12:55:01 +0400
commit620a27000ee3e65b25baff9a99355eb8f48aff5c (patch)
tree680d63f8022185d4e7eae9f53c29979d264693e5 /mysql-test
parent376d67e5c0718fc611917523435c1a753eaffe7a (diff)
parent5c598ba6b560b0e3596043b58491cd686dd158b9 (diff)
downloadmariadb-git-620a27000ee3e65b25baff9a99355eb8f48aff5c.tar.gz
Automerge.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/type_time.result10
-rw-r--r--mysql-test/t/type_time.test13
2 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/r/type_time.result b/mysql-test/r/type_time.result
index d80a3973555..e4b90196c2d 100644
--- a/mysql-test/r/type_time.result
+++ b/mysql-test/r/type_time.result
@@ -128,3 +128,13 @@ SELECT sum(f3) FROM t1 where f2='2007-07-01 00:00:00' group by f2;
sum(f3)
3
drop table t1;
+#
+# Bug #44792: valgrind warning when casting from time to time
+#
+CREATE TABLE t1 (c TIME);
+INSERT INTO t1 VALUES ('0:00:00');
+SELECT CAST(c AS TIME) FROM t1;
+CAST(c AS TIME)
+00:00:00
+DROP TABLE t1;
+End of 5.0 tests
diff --git a/mysql-test/t/type_time.test b/mysql-test/t/type_time.test
index 5fc763be7fe..5bb521601e5 100644
--- a/mysql-test/t/type_time.test
+++ b/mysql-test/t/type_time.test
@@ -77,3 +77,16 @@ insert into t1 values('2007-07-02', 1);
insert into t1 values('2007-07-02', 2);
SELECT sum(f3) FROM t1 where f2='2007-07-01 00:00:00' group by f2;
drop table t1;
+
+
+--echo #
+--echo # Bug #44792: valgrind warning when casting from time to time
+--echo #
+
+CREATE TABLE t1 (c TIME);
+INSERT INTO t1 VALUES ('0:00:00');
+SELECT CAST(c AS TIME) FROM t1;
+DROP TABLE t1;
+
+
+--echo End of 5.0 tests