feat: refs #7681 Optimization and refactor #2707

Merged
guillermo merged 7 commits from 7681-routeUpdateM3 into dev 2024-07-19 11:12:22 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit a725cd2840 - Show all commits

View File

@ -22,6 +22,9 @@ BEGIN
START TRANSACTION;
-- Hago el into para que no de error en los triggers
SELECT id INTO vSelf FROM `route` WHERE id = vSelf FOR UPDATE;
UPDATE `route`
SET m3 = (SELECT volume FROM tRouteVolume)
WHERE id = vSelf;