bugfix GetIncidentReport
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -56,7 +56,7 @@ WHERE incident_number = sqlc.arg('incidentNumber');
|
||||
SELECT * FROM incidents;
|
||||
|
||||
-- name: GetIncidentReport :many
|
||||
SELECT incidents.*, GROUP_CONCAT(worknotes.note, '<br />') AS all_notes
|
||||
SELECT incidents.*, IFNULL(GROUP_CONCAT(worknotes.note, '<br />'), ' ') AS all_notes
|
||||
FROM incidents LEFT JOIN worknotes ON incidents.incident_number = worknotes.incident_number
|
||||
GROUP BY incidents.id;
|
||||
|
||||
|
Reference in New Issue
Block a user