MySQL Forums
Forum List  »  InnoDB

I found my bug
Posted by: Marco Erni
Date: December 27, 2005 08:51AM

the bug was in my declaration, this is the right declaration:
Declare temp INT;
declare done INT Default 0;
Declare cur1 Cursor For select a from testdb.test1;
Declare continue handler for Sqlstate '02000' set done = 1;

the cursor must be declared after the normal variables.

marco

Options: ReplyQuote


Subject
Views
Written By
Posted
I found my bug
8659
December 27, 2005 08:51AM


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.