Merge pull request 'fix: refs #8087 correct SQL join condition in entry_beforeUpdate trigger' (!3246) from 8087-correctFix into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #3246
Reviewed-by: Robert Ferrús <robert@verdnatura.es>
This commit is contained in:
Pablo Natek 2024-11-26 08:20:10 +00:00
commit 7b3a08d222
1 changed files with 2 additions and 2 deletions

View File

@ -38,10 +38,10 @@ BEGIN
CALL travel_throwAwb(NEW.travelFk);
END IF;
SELECT isRaid INTO vIsRaid
SELECT t.isRaid INTO vIsRaid
FROM travel t
JOIN entry e ON e.travelFk = t.id
WHERE t.entryFk = NEW.id;
WHERE e.id = NEW.id;
SELECT NOT (o.warehouseInFk <=> n.warehouseInFk)
OR NOT (o.warehouseOutFk <=> n.warehouseOutFk)