summaryrefslogtreecommitdiff
path: root/mysql-test/r/uniques_crash-7912.result
diff options
context:
space:
mode:
authorVicentiu Ciorbaru <vicentiu@mariadb.org>2015-04-28 15:09:04 +0300
committerVicentiu Ciorbaru <vicentiu@mariadb.org>2015-04-28 15:09:04 +0300
commitac2b92c4760c7aa111d3f115f9af40fc657e18ed (patch)
tree42f1439f2ee869e8c22cd4e5d3fa94b4412e154f /mysql-test/r/uniques_crash-7912.result
parent939a2334397468d4cd69516d9f4d64bea185566b (diff)
downloadmariadb-git-ac2b92c4760c7aa111d3f115f9af40fc657e18ed.tar.gz
MDEV-7912 multitable delete with wrongly set sort_buffer_size crashes in merge_buffers
Fixed overflow error that caused fewer bites to be allocated than necessary on Windows 64 bit. This is due to ulong being 32 bit on 64 bit Windows and 64 bit on 64 bit Linux.
Diffstat (limited to 'mysql-test/r/uniques_crash-7912.result')
-rw-r--r--mysql-test/r/uniques_crash-7912.result18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/uniques_crash-7912.result b/mysql-test/r/uniques_crash-7912.result
new file mode 100644
index 00000000000..31029da5c86
--- /dev/null
+++ b/mysql-test/r/uniques_crash-7912.result
@@ -0,0 +1,18 @@
+set sql_mode="";
+drop table if exists t1,t2;
+Warnings:
+Note 1051 Unknown table 't1'
+Note 1051 Unknown table 't2'
+create table `t1` (`a` datetime not null) engine=InnoDB;
+create table `t2` (`a` int not null) engine=innodb;
+replace into t1 values (),();
+Warnings:
+Warning 1364 Field 'a' doesn't have a default value
+insert into t2 values(0);
+set session sort_buffer_size = 1024*1024*1024*1024;
+SET session debug_dbug= '+d,make_merge_buff_alloc_fail';
+delete d2 from t2 as d1, t1 as d2 where d1.a <=> d2.a;
+ERROR HY000: Out of memory (Needed 2 bytes)
+SET SESSION debug_dbug=DEFAULT;
+drop table t2;
+drop table t1;