diff options
author | unknown <sergefp@mysql.com> | 2005-09-09 10:08:46 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-09-09 10:08:46 +0400 |
commit | 5ed7e97310c2c5e8f7ec50bf0e15fb01cce53407 (patch) | |
tree | f1b1e8aeb74cd1148377fe9052f626cce27c1bae /mysql-test/t/sp.test | |
parent | 65ba93fda94e153ee66ed01824ae40296250e5ff (diff) | |
parent | eb769e54b8ab429cb86502866d438a44fcee7473 (diff) | |
download | mariadb-git-5ed7e97310c2c5e8f7ec50bf0e15fb01cce53407.tar.gz |
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/psergey/mysql-5.0-bug12943
mysql-test/r/sp.result:
Auto merged
mysql-test/t/sp.test:
Auto merged
sql/item_func.cc:
Auto merged
sql/sp_head.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
Diffstat (limited to 'mysql-test/t/sp.test')
-rw-r--r-- | mysql-test/t/sp.test | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test index 1fff6bf8109..3d315fa12df 100644 --- a/mysql-test/t/sp.test +++ b/mysql-test/t/sp.test @@ -3877,29 +3877,23 @@ drop function bug10055| # consumption by passing large input parameter. # -# -# Note: the test is currenly disabled because of the -# Bug #12637: SP crashes the server if it has update query with user var -# & binlog is enabled. -# - --disable_warnings -#drop procedure if exists bug12297| +drop procedure if exists bug12297| --enable_warnings -#create procedure bug12297(lim int) -#begin -# set @x = 0; -# repeat -# insert into t1(id,data) -# values('aa', @x); -# set @x = @x + 1; -# until @x >= lim -# end repeat; -#end| +create procedure bug12297(lim int) +begin + set @x = 0; + repeat + insert into t1(id,data) + values('aa', @x); + set @x = @x + 1; + until @x >= lim + end repeat; +end| -#call bug12297(10)| -#drop procedure bug12297| +call bug12297(10)| +drop procedure bug12297| # # Bug #11247 "Stored procedures: Function calls in long loops leak memory" |