From: Chris Sharp Date: Mon, 22 Jul 2013 16:35:46 +0000 (-0400) Subject: Fixing LP 1203796. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=46959b3963e4ae4f9e8faae64b1772259cc58384;p=evergreen%2Fpines.git Fixing LP 1203796. The alternate view in the Item Status screen shows a "Total Circs" field that was under-counting circulations because UNION filtered out duplicates. This commit replaces UNION with UNION ALL, which allows duplicate rows. Signed-off-by: Chris Sharp Signed-off-by: Ben Shum --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 51fc33aa7c..8f1447b9bc 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -9740,7 +9740,7 @@ SELECT usr, asset.copy cp JOIN action.circulation circ ON (cp.id = circ.target_copy) GROUP BY 1, 3, 4 - UNION + UNION ALL SELECT cp.id as copy, COUNT(circ.id), @@ -9750,7 +9750,7 @@ SELECT usr, asset.copy cp JOIN action.aged_circulation circ ON (cp.id = circ.target_copy) GROUP BY 1, 3, 4 - UNION + UNION ALL SELECT id as copy, circ_count,