diff options
author | Alexander Barkov <bar@mariadb.org> | 2013-08-08 11:36:03 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2013-08-08 11:36:03 +0400 |
commit | e6a6f653a9c67741f67df9448b3182066939283c (patch) | |
tree | 5f307b4631fc35ddb9326caefbddc02c3a9b10c6 /mysql-test/t/func_set.test | |
parent | 8de120e2b947f8dc006fbbc0ff9326e2bd967fc2 (diff) | |
download | mariadb-git-e6a6f653a9c67741f67df9448b3182066939283c.tar.gz |
MDEV-4512 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types
Fixing a typo: bit AND (&) was erroneously used instead of logical AND (&&)
Diffstat (limited to 'mysql-test/t/func_set.test')
-rw-r--r-- | mysql-test/t/func_set.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/func_set.test b/mysql-test/t/func_set.test index 294efa8caf1..1dab3aae852 100644 --- a/mysql-test/t/func_set.test +++ b/mysql-test/t/func_set.test @@ -97,3 +97,21 @@ SELECT CONVERT( a USING latin1 ) FROM t1; SELECT CONVERT( a USING latin1 ) FROM t2; DROP TABLE t1, t2; + + +--echo # +--echo # Start of 5.3 tests +--echo # + +--echo # +--echo # MDEV-4512 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types +--echo # +CREATE TABLE t1 (pk INT PRIMARY KEY); +INSERT INTO t1 VALUES (10),(11); +SELECT INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 ) FROM t1; +DROP TABLE t1; + +--echo # +--echo # End of 5.3 tests +--echo # + |