MySQL Forums
Forum List  »  Stored Procedures

Error 1456. Recursive limit 0 was exceeded for routine
Posted by: David Lopez Zajara
Date: April 24, 2012 11:26AM


I have a problem executing a stored procedure. This is the create:


CREATE DEFINER=`root`@`` PROCEDURE `update_sites`(IN `osmregion` INT)
UPDATE `geo_region` SET `_sites` = 0 WHERE `id` = osmregion AND `id_lang` = 3;

When call the function with CALL update_sites(1); i got these result:

0 19:19:46 CALL update_sites(1) Error Code: 1456. Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine update_sites

Please help, i can't understand the error. My routine isn't recursive, and i've tried to change the limit with SET @@global.max_sp_recursion_depth = 400; without result. Also, i've tested and the UPDATE sentence on the SP only affects one row.

Options: ReplyQuote

Written By
Error 1456. Recursive limit 0 was exceeded for routine
April 24, 2012 11:26AM

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.