Thread_overrun error
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..
Subject
Views
Written By
Posted
Thread_overrun error
2450
February 05, 2014 03:56PM
1248
February 05, 2014 04:24PM
1071
February 05, 2014 04:30PM
1145
February 05, 2014 05:34PM
1076
February 05, 2014 05:39PM
1324
February 06, 2014 11:35PM
1216
February 07, 2014 03:27AM
1263
February 07, 2014 03:29AM
1221
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.