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

Reviewed-on: #3245
Reviewed-by: Robert Ferrús <robert@verdnatura.es>
This commit is contained in:
Pablo Natek 2024-11-26 08:09:43 +00:00
commit 5a050e2748
1 changed files with 1 additions and 1 deletions

View File

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