feat: refs #7398 Change
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-05-22 08:11:27 +02:00
parent 2ffdce3c64
commit 0d620c6f33
1 changed files with 11 additions and 2 deletions

View File

@ -79,8 +79,6 @@ BEGIN
klo = vKlo
AND auction = vAuction
AND agj = vShortAgj
) OR (
klo = auction -- No se si se refiere a esto
)
)
ORDER BY agj DESC, fec DESC
@ -122,6 +120,17 @@ BEGIN
SELECT COUNT(*) FROM tmp.ekt INTO vIsFound;
END IF;
-- Solo campo agj
IF NOT vIsFound THEN
INSERT INTO tmp.ekt
SELECT id
FROM ektRecent
WHERE agj = vShortAgj;
SELECT COUNT(*) FROM tmp.ekt INTO vIsFound;
END IF;
END CASE;
IF vIsFound THEN