refs #4409 Remove old recalc code #2300

Merged
juan merged 9 commits from 4409-binlog into dev 2024-04-22 19:45:20 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 739ae82ace - Show all commits

View File

@ -1,6 +1,7 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`binlogQueue_getDelay`(vCode VARCHAR(255))
RETURNS BIGINT
READS SQL DATA
NOT DETERMINISTIC
BEGIN
/**

View File

@ -13,7 +13,7 @@ BEGIN
DECLARE vDone BOOL;
DECLARE vTicketFk INT;
DECLARE cCur CURSOR FOR
DECLARE cTickets CURSOR FOR
SELECT id FROM ticket
WHERE refFk IS NULL
AND ((vScope = 'client' AND clientFk = vId)
@ -22,11 +22,11 @@ BEGIN
DECLARE CONTINUE HANDLER FOR NOT FOUND
SET vDone = TRUE;
OPEN cCur;
OPEN cTickets;
juan marked this conversation as resolved Outdated

cCur -> cTickets

cCur -> cTickets
myLoop: LOOP
SET vDone = FALSE;
FETCH cCur INTO vTicketFk;
FETCH cTickets INTO vTicketFk;
IF vDone THEN
LEAVE myLoop;
@ -35,6 +35,6 @@ BEGIN
CALL ticket_recalc(vTicketFk, NULL);
END LOOP;
CLOSE cCur;
CLOSE cTickets;
END$$
DELIMITER ;