fix: refs #7779 refactor collection #3021

Merged
carlosap merged 4 commits from 7779-refactor-collection into dev 2024-09-27 09:29:36 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 0851c6fb97 - Show all commits

View File

@ -245,7 +245,7 @@ BEGIN
SELECT wagon INTO vFreeWagonFk
FROM tTrain
GROUP BY wagon
HAVING SUM(IFNULL(ticketFk, 0)) = 0
HAVING COUNT(ticketFk) = 0
jgallego marked this conversation as resolved Outdated

HAVING COUNT(ticketFk) = 0 açò seria mes intuitiu

HAVING COUNT(ticketFk) = 0 açò seria mes intuitiu
ORDER BY wagon
LIMIT 1;
@ -262,7 +262,7 @@ BEGIN
JOIN (SELECT wagon
FROM tTrain
GROUP BY wagon
HAVING SUM(IFNULL(ticketFk, 0)) = 0
HAVING COUNT(ticketFk) = 0
jgallego marked this conversation as resolved Outdated

HAVING COUNT(ticketFk) = 0

HAVING COUNT(ticketFk) = 0
) sub ON sub.wagon = tt.wagon;
END IF;
END IF;