diff options
author | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-02-05 15:48:30 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-02-05 15:48:30 +0300 |
commit | e2661648322870818498a761edc9010737f4974e (patch) | |
tree | 5a80bfa2ce7464f4dd593a877b04c6d7307c4fb1 /mysql-test/t/func_str.test | |
parent | 23fb47a3ad314a05c4edee77d5af0b21c2c31526 (diff) | |
parent | 58f67beb92b9e48170bfc5478065a6f39cee8db9 (diff) | |
download | mariadb-git-e2661648322870818498a761edc9010737f4974e.tar.gz |
Merge to team tree.
Diffstat (limited to 'mysql-test/t/func_str.test')
-rw-r--r-- | mysql-test/t/func_str.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_str.test b/mysql-test/t/func_str.test index 8298a50c277..389538c4cc0 100644 --- a/mysql-test/t/func_str.test +++ b/mysql-test/t/func_str.test @@ -1159,4 +1159,13 @@ select format(a, 2) from t1; --disable_metadata drop table t1; +# +# Bug #41868: crash or memory overrun with concat + upper, date_format functions +# + +CREATE TABLE t1 (c DATE, aa VARCHAR(30)); +INSERT INTO t1 VALUES ('2008-12-31','aaaaaa'); +SELECT DATE_FORMAT(c, GET_FORMAT(DATE, 'eur')) h, CONCAT(UPPER(aa),', ', aa) i FROM t1; +DROP TABLE t1; + --echo End of 5.0 tests |