[Commits] Rev 3680: Test suite fo bug MDEV-4849: Out of memory error and valgrind warnings on COLUMN_ADD in file:///home/bell/maria/bzr/work-maria-10.0-base-MDEV-4849/

sanja at montyprogram.com sanja at montyprogram.com
Tue Aug 20 16:53:52 EEST 2013


At file:///home/bell/maria/bzr/work-maria-10.0-base-MDEV-4849/

------------------------------------------------------------
revno: 3680
revision-id: sanja at montyprogram.com-20130820135351-6wjeq3u31waunp7c
parent: sanja at montyprogram.com-20130820132330-48dg929lhqx65gyw
committer: sanja at montyprogram.com
branch nick: work-maria-10.0-base-MDEV-4849
timestamp: Tue 2013-08-20 16:53:51 +0300
message:
  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.
-------------- next part --------------
=== modified file 'mysql-test/r/dyncol.result'
--- a/mysql-test/r/dyncol.result	2013-08-20 13:23:30 +0000
+++ b/mysql-test/r/dyncol.result	2013-08-20 13:53:51 +0000
@@ -1741,3 +1741,13 @@ select hex(column_create(1, "2012-12-21
 column_json(column_create(1, "2012-12-21 10:46:06" AS datetime)) as json;
 hex	json
 00010001000595B90F000060B80A00	{"1":"2012-12-21 10:46:06"}
+#
+# MDEV-4849: Out of memory error and valgrind warnings on COLUMN_ADD
+#
+CREATE TABLE t1 (dyncol tinyblob) ENGINE=MyISAM;
+INSERT INTO t1 SET dyncol = COLUMN_CREATE( 3, REPEAT('a',330), 4, 'x' );
+Warnings:
+Warning	1265	Data truncated for column 'dyncol' at row 1
+SELECT COLUMN_ADD( COLUMN_ADD( dyncol, 1, REPEAT('b',130) ), 3, 'y' ) FROM t1;
+ERROR HY000: Encountered illegal format of dynamic column string
+DROP TABLE t1;

=== modified file 'mysql-test/t/dyncol.test'
--- a/mysql-test/t/dyncol.test	2013-08-20 13:23:30 +0000
+++ b/mysql-test/t/dyncol.test	2013-08-20 13:53:51 +0000
@@ -801,3 +801,14 @@ select hex(column_create("t", "2012-12-2
        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;



More information about the commits mailing list