Re: Problems using LOOP..END LOOP, label and LEAVE
Alas, I can't get it working. I tried it in the query browser and in the command line utility. The last thing i tried was:
mysql> delimiter #
mysql> select @@sql_mode#
+-------------------------------------------------------------+
| @@sql_mode |
+-------------------------------------------------------------+
| REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI |
+-------------------------------------------------------------+
1 row in set (0.03 sec)
mysql> select version()#
+---------------+
| version() |
+---------------+
| 5.0.7-beta-nt |
+---------------+
1 row in set (0.03 sec)
mysql> create procedure myproc()
-> begin
-> myLoop: loop
-> leave myLoop;
-> end loop;
-> end;#
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'myLoo
p: loop
leave myLoop;
end loop;
end' at line 2
mysql>
Is there anyone who can get this working?
To me, it seems related to bug# 11361, (Ross Rankin)
Subject
Views
Written By
Posted
5318
June 29, 2005 06:25AM
2399
June 29, 2005 07:26AM
2487
June 30, 2005 12:38AM
2413
June 30, 2005 04:57AM
2293
June 30, 2005 05:41AM
Re: Problems using LOOP..END LOOP, label and LEAVE
2339
July 01, 2005 04:17AM
2316
July 01, 2005 05:23AM
2293
July 01, 2005 06:04AM
2888
July 01, 2005 06:29AM
2370
July 01, 2005 07:11AM
4587
July 01, 2005 04:39PM
2440
July 17, 2005 01:24AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.