diff options
author | unknown <sanja@montyprogram.com> | 2013-08-20 16:53:51 +0300 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2013-08-20 16:53:51 +0300 |
commit | 3c75146052711bcc829ede488536f70782a34ab0 (patch) | |
tree | 226d81593e10728fc045537bd824e71fcea0af68 /mysql-test/t/dyncol.test | |
parent | 9a28e43305bf62e1cef269c395f3ac212c659347 (diff) | |
download | mariadb-git-3c75146052711bcc829ede488536f70782a34ab0.tar.gz |
Test suite fo bug MDEV-4849: Out of memory error and valgrind warnings on COLUMN_ADD
It was fixed as merge changes for MDEV-4811.
Diffstat (limited to 'mysql-test/t/dyncol.test')
-rw-r--r-- | mysql-test/t/dyncol.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/dyncol.test b/mysql-test/t/dyncol.test index 476798a6c7f..6bc0938afc5 100644 --- a/mysql-test/t/dyncol.test +++ b/mysql-test/t/dyncol.test @@ -801,3 +801,14 @@ select hex(column_create("t", "2012-12-21 10:46:06" AS datetime)) as hex, column_json(column_create("t", "2012-12-21 10:46:06" AS datetime)) as json; select hex(column_create(1, "2012-12-21 10:46:06" AS datetime)) as hex, column_json(column_create(1, "2012-12-21 10:46:06" AS datetime)) as json; + +--echo # +--echo # MDEV-4849: Out of memory error and valgrind warnings on COLUMN_ADD +--echo # +CREATE TABLE t1 (dyncol tinyblob) ENGINE=MyISAM; + +INSERT INTO t1 SET dyncol = COLUMN_CREATE( 3, REPEAT('a',330), 4, 'x' ); +--error ER_DYN_COL_WRONG_FORMAT +SELECT COLUMN_ADD( COLUMN_ADD( dyncol, 1, REPEAT('b',130) ), 3, 'y' ) FROM t1; + +DROP TABLE t1; |