summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-07-23 03:14:29 +0300
committerunknown <bell@sanja.is.com.ua>2004-07-23 03:14:29 +0300
commit24241c8c7a4025524e391e2c59e8658227dcc83d (patch)
tree1486ac38b0abcfe43b7240a8065bfbd585a6ffff /mysql-test
parent57f6c612628a0cf87d5da6cf58c1210570523f65 (diff)
parent8a33c2bc8fb816c93baddaa04835d8dc5d7fde35 (diff)
downloadmariadb-git-24241c8c7a4025524e391e2c59e8658227dcc83d.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-5.0
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/sp.result21
-rw-r--r--mysql-test/t/sp.test30
2 files changed, 51 insertions, 0 deletions
diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result
index bbad39c8ad4..eb2d19be56f 100644
--- a/mysql-test/r/sp.result
+++ b/mysql-test/r/sp.result
@@ -1387,6 +1387,27 @@ group_concat(v)
yz,yz
drop procedure bug3368|
drop table t3|
+drop table if exists t3|
+create table t3 (f1 int, f2 int);
+insert into t3 values (1,1);
+create procedure bug4579_1 ()
+begin
+declare sf1 int;
+select f1 into sf1 from t3 where f1=1 and f2=1;
+update t3 set f2 = f2 + 1 where f1=1 and f2=1;
+call bug4579_2();
+end|
+create procedure bug4579_2 ()
+begin
+end|
+call bug4579_1()|
+call bug4579_1()|
+Warnings:
+call bug4579_1()|
+Warnings:
+drop procedure bug4579_1|
+drop procedure bug4579_2|
+drop table t3|
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 fbe9060bfa1..4364f4415b3 100644
--- a/mysql-test/t/sp.test
+++ b/mysql-test/t/sp.test
@@ -1592,6 +1592,36 @@ call bug3368('yz')|
drop procedure bug3368|
drop table t3|
+#
+# BUG#4579
+#
+--disable_warnings
+drop table if exists t3|
+--enable_warnings
+create table t3 (f1 int, f2 int);
+insert into t3 values (1,1);
+
+create procedure bug4579_1 ()
+begin
+ declare sf1 int;
+
+ select f1 into sf1 from t3 where f1=1 and f2=1;
+ update t3 set f2 = f2 + 1 where f1=1 and f2=1;
+ call bug4579_2();
+end|
+
+create procedure bug4579_2 ()
+begin
+end|
+
+call bug4579_1()|
+call bug4579_1()|
+call bug4579_1()|
+
+drop procedure bug4579_1|
+drop procedure bug4579_2|
+drop table t3|
+
#
# Some "real" examples