MySQL Forums
Forum List  »  Stored Procedures

Thread_overrun error
Posted by: Caner YILMAZ
Date: February 05, 2014 03:56PM

CREATE PROCEDURE fetchyapisi()
BEGIN

DECLARE l_account_id BIGINT;
DECLARE l_order_id BIGINT;
DECLARE l_total_sum BIGINT;
DECLARE l_debt_sum BIGINT;
DECLARE siparis CURSOR FOR

SELECT account1_id,order_id,total_sum,debt_amount from jaces_fieldmark where account1_id=35474;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET @not_found_credit=1;
OPEN siparis;
SET @not_found_credit=0;
dept_loop:WHILE(@not_found_credit=0)DO
FETCH siparis INTO l_account_id,l_order_id,l_total_sum,l_debt_sum;
IF @not_found_credit = 1 THEN
LEAVE dept_loop;
END IF;
SELECT l_account_id,l_order_id,l_total_sum;
END WHILE dept_loop;
close siparis;
SET @not_found_credit=0;
END//

This is my procedure.When I call this I'm getting an 1436 thread stack overrun error..Also I writed thread_stack=256K in the my.cnf file...But did not improve..
Can you help me please... thank you..

Options: ReplyQuote


Subject
Views
Written By
Posted
Thread_overrun error
2245
February 05, 2014 03:56PM
1124
February 05, 2014 04:24PM
975
February 05, 2014 04:30PM
1054
February 05, 2014 05:34PM
988
February 05, 2014 05:39PM
1193
February 06, 2014 11:35PM
1115
February 07, 2014 03:27AM
1187
February 07, 2014 03:29AM
1118
February 07, 2014 10:34AM


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.