I have a stored procedure to regenerate leafs (nleft, nright) in simple (id, id_parent) tree. (sample table)
When I'am calling
CALL EdgeListToNestedSet( 'category', 'id_category', 'id_parent');
it works great with version 5.5.29 of mysql but on 5.0.26 I've got an error:
#1312 - PROCEDURE test.EdgeListToNestedSet can't return a result set in the given context
Any ideas what can be wrong and how to make it working?