summaryrefslogtreecommitdiff
path: root/mysql-test/r/dyncol.result
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2013-08-20 16:53:51 +0300
committerunknown <sanja@montyprogram.com>2013-08-20 16:53:51 +0300
commit3c75146052711bcc829ede488536f70782a34ab0 (patch)
tree226d81593e10728fc045537bd824e71fcea0af68 /mysql-test/r/dyncol.result
parent9a28e43305bf62e1cef269c395f3ac212c659347 (diff)
downloadmariadb-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/r/dyncol.result')
-rw-r--r--mysql-test/r/dyncol.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/dyncol.result b/mysql-test/r/dyncol.result
index 8b14884fec0..ab23992fe10 100644
--- a/mysql-test/r/dyncol.result
+++ b/mysql-test/r/dyncol.result
@@ -1741,3 +1741,13 @@ 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;
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;