[open-ils-commits] r11343 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 25 10:59:45 EST 2008
Author: miker
Date: 2008-11-25 10:59:43 -0500 (Tue, 25 Nov 2008)
New Revision: 11343
Modified:
trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
Log:
syntax error when moving to the per-penalty loop
Modified: trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql 2008-11-25 15:52:05 UTC (rev 11342)
+++ trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql 2008-11-25 15:59:43 UTC (rev 11343)
@@ -255,7 +255,7 @@
JOIN config.standing_penalty csp ON (csp.id = usp.standing_penalty)
WHERE usr = match_user
AND usp.org_unit IN ( SELECT * FROM explode_array(context_org_list) )
- AND csp.block_list LIKE '%HOLD%';
+ AND csp.block_list LIKE '%HOLD%' LOOP
result.fail_part := standing_penalty.name;
result.success := FALSE;
@@ -270,7 +270,7 @@
JOIN config.standing_penalty csp ON (csp.id = usp.standing_penalty)
WHERE usr = match_user
AND usp.org_unit IN ( SELECT * FROM explode_array(context_org_list) )
- AND csp.block_list LIKE '%CIRC%';
+ AND csp.block_list LIKE '%CIRC%' LOOP
result.fail_part := standing_penalty.name;
result.success := FALSE;
More information about the open-ils-commits
mailing list