summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@sun.com>2009-05-15 12:42:57 +0400
committerAlexey Kopytov <Alexey.Kopytov@sun.com>2009-05-15 12:42:57 +0400
commit5c598ba6b560b0e3596043b58491cd686dd158b9 (patch)
tree7c25e0b0634355cae94cbb3e642cfe482223af80 /mysql-test
parent5f3dc895b0b80228a3c09385f82be001db2bf2c4 (diff)
parent22e840d70700cd1aceec27d6aee3883203a5a566 (diff)
downloadmariadb-git-5c598ba6b560b0e3596043b58491cd686dd158b9.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