yes..with millions of records...it keeps inserting the last record. The fetch from the second cursor returns that last record all the time and it never leaves that loop.
Aparently the exit condition is never met and the fetch keeps returning the last record..
IF SQLSTATE = '02000' THEN
LEAVE INSLOOP2;
END IF;
is not working.
It getting stuck in the second loop in the insert statement, and it keeps inserting the same records over and over again. the table has about 7000 records
I'm using Pervasive Database v8.7 and I have the following stored
procedure that It doesn't work and goes into a endless loop.
Is it that this database doesn't support nested cursors?
thank you.
CREATE PROCEDURE populate_test() AS
BEGIN
DECLARE :v_parent CHAR(20);
DECLARE :v_part1 CHAR(20)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.