fix: refs #7213 Hotfix-ticket_isTooLittle-group-by-addressFk #2895
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2895
Loading…
Reference in New Issue
No description provided.
Delete Branch "Hotfix-ticket_isTooLittle-group-by-addressFk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -12,13 +12,20 @@ BEGIN
* @return BOOL
*/
DECLARE vIsTooLittle TINYINT(1);
BOOL, i dalt en el RETURNS tame BOOL
@ -14,2 +14,3 @@
DECLARE vIsTooLittle TINYINT(1);
WITH tickets AS (
Aço es soles una observació, crec que no te sentit dir-li tickets si soles es 1 ticket, jo li diría ticketAddress o algo per l'estil
@ -15,3 +15,1 @@
SELECT vSelf ticketFk,
ticket_isTooLittle(vSelf) hasProblem,
ticket_isProblemCalcNeeded(vSelf) isProblemCalcNeeded;
WITH tickets AS (
Lo mateix que ací #2895 (comment)
@ -18,0 +17,4 @@
FROM vn.ticket
WHERE id = vSelf
)
SELECT t.id ticketFk,
Ací estás pasant per cada ticket per la funció
vn.ticket_isTooLittle()
, no et fa falta, jo ficaria el SELECT amb el ticket vSelf dalt en una variable, ja que tots els tickets te van a donar lo mateix.Entenc tot lo demes, ja que si que te interesa cridar a la funció
ticket_isProblemCalcNeeded
per cada ticket.Hotfix-ticket_isTooLittle-group-by-addressFkto fix: refs #7213 Hotfix-ticket_isTooLittle-group-by-addressFk