diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-11-18 22:03:02 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-11-18 22:03:02 +0100 |
commit | ab476a8d107b3e5b591944b2b5eb3a21d6d003a1 (patch) | |
tree | 966c077afce804cbaf0fc46ecab09c3d1da36a13 /mysql-test/r/view.result | |
parent | f91798dd1c9e178061ba58c88a42b9cb3701385d (diff) | |
parent | 43a5090980ac0ab9695587979b9068b6bf849d64 (diff) | |
download | mariadb-git-ab476a8d107b3e5b591944b2b5eb3a21d6d003a1.tar.gz |
Merge branch '5.5' into 10.0
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r-- | mysql-test/r/view.result | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index 347d2841081..aa67013757f 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -5477,6 +5477,39 @@ UPDATE t1, t2 SET a = 1 WHERE a IN ( SELECT 0 FROM v3 ); EXECUTE stmt; DROP TABLE t1, t2, t3; DROP VIEW v3; +# +# MDEV-8632: Segmentation fault on INSERT +# +CREATE TABLE `t1` ( +`id` int(10) unsigned NOT NULL, +`r` float NOT NULL, +PRIMARY KEY (`id`) +) DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +create view v1 as select id, if(r=r,1,2) as d from t1; +create view v2 as +select id, +d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d as p +from v1; +insert into t1 (id, r) +select id,p from +( +select id, +d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d+d as p +from ( +select id, if(r=r,1,2) as d +from t1 +) a +) b +on duplicate key update r=p; +insert into t1 (id, r) +select id,p from v2 +on duplicate key update r=p; +prepare stmt from "insert into t1 (id, r) select id,p from v2 on duplicate key update r=p"; +execute stmt; +execute stmt; +deallocate prepare stmt; +drop view v1,v2; +drop table `t1`; # ----------------------------------------------------------------- # -- End of 5.5 tests. # ----------------------------------------------------------------- |