fix: restore cursor

This commit is contained in:
Pablo Natek 2024-10-21 12:19:20 +02:00
parent e38c061deb
commit e479873547
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@ BLOCK1: BEGIN
DECLARE vShipped DATE;
DECLARE vPreviousShipped DATE;
DECLARE vDone boolean;
DECLARE cur cursor for
DECLARE cur CURSOR FOR
SELECT clientFk, firstShipped
FROM bs.clientNewBorn;
DECLARE continue HANDLER FOR NOT FOUND SET vDone = TRUE;
SET vDone := FALSE;