summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/sp.result11
-rw-r--r--mysql-test/t/sp.test32
2 files changed, 29 insertions, 14 deletions
diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result
index 3b6755a271c..bf515e4b4cd 100644
--- a/mysql-test/r/sp.result
+++ b/mysql-test/r/sp.result
@@ -978,6 +978,17 @@ call bug2227(9)|
1.3 x y 42 z
1.3 9 2.6 42 zzz
drop procedure bug2227|
+create procedure bug2614()
+begin
+drop table if exists t3;
+create table t3 (id int default '0' not null);
+insert into t3 select 12;
+insert into t3 select * from t3;
+end|
+call bug2614()|
+call bug2614()|
+drop table t3|
+drop procedure bug2614|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned)
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test
index a852e8ae148..3cb88ec5717 100644
--- a/mysql-test/t/sp.test
+++ b/mysql-test/t/sp.test
@@ -1120,6 +1120,24 @@ end|
call bug2227(9)|
drop procedure bug2227|
+#
+# BUG#2614
+#
+create procedure bug2614()
+begin
+ drop table if exists t3;
+ create table t3 (id int default '0' not null);
+ insert into t3 select 12;
+ insert into t3 select * from t3;
+end|
+
+--disable_warnings
+call bug2614()|
+--enable_warnings
+call bug2614()|
+drop table t3|
+drop procedure bug2614|
+
#
# Some "real" examples
@@ -1302,17 +1320,3 @@ drop procedure bar|
delimiter ;|
drop table t1;
drop table t2;
-delimiter |
-drop procedure if exists crash|
-create procedure crash()
- begin
- drop table if exists t1;
- create table t1 (id int default '0' not null);
- insert into t1 select 12;
- insert into t1 select * from t1;
- end|
-delimiter ;
-call crash();
-call crash();
-drop table t1;
-drop procedure if exists crash;