MySQL Forums
Forum List  »  InnoDB

Re: cursor not open error (error code :1326)
Posted by: Devart Team
Date: February 04, 2011 02:50AM

You are trying to close the cursor c1 twice. First time - after the 'if no_rows' condition, and second time - at the end. Have a look at this example - Cursors.

Try to debug your sp with a code debugger. It will help to understand what happened.

Also, you might resolve your task with INSERT...SELECT statement, without any cursors, i.e. -
INSERT INTO customertrans(customerID) SELECT customerID from master;

Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: cursor not open error (error code :1326)
3875
February 04, 2011 02:50AM


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.