hotfix: itemProposal added transaction
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-03-14 07:53:24 +01:00
parent 319bf314b3
commit b4b6b47a9c
1 changed files with 8 additions and 0 deletions

View File

@ -18,12 +18,19 @@ BEGIN
DECLARE vCalcFk INT; DECLARE vCalcFk INT;
DECLARE vTypeFk INT; DECLARE vTypeFk INT;
DECLARE vPriority INT DEFAULT 1; DECLARE vPriority INT DEFAULT 1;
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
ROLLBACK;
RESIGNAL;
END;
SELECT warehouseFk, shipped SELECT warehouseFk, shipped
INTO vWarehouseFk, vShipped INTO vWarehouseFk, vShipped
FROM ticket FROM ticket
WHERE id = vTicketFk; WHERE id = vTicketFk;
START TRANSACTION;
CALL cache.available_refresh(vCalcFk, FALSE, vWarehouseFk, vShipped); CALL cache.available_refresh(vCalcFk, FALSE, vWarehouseFk, vShipped);
WITH itemTags AS ( WITH itemTags AS (
@ -92,5 +99,6 @@ BEGIN
match7 DESC, match7 DESC,
(i.tag8 = its.tag8) DESC, (i.tag8 = its.tag8) DESC,
match8 DESC; match8 DESC;
COMMIT;
END$$ END$$
DELIMITER ; DELIMITER ;