[open-ils-commits] r13602 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jul 15 12:48:42 EDT 2009
Author: miker
Date: 2009-07-15 12:48:39 -0400 (Wed, 15 Jul 2009)
New Revision: 13602
Modified:
trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
Log:
check for a null circ mod on an item when doing a non-null circ_mod test
Modified: trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql 2009-07-15 16:15:55 UTC (rev 13601)
+++ trunk/Open-ILS/src/sql/Pg/100.circ_matrix.sql 2009-07-15 16:48:39 UTC (rev 13602)
@@ -166,7 +166,7 @@
CASE WHEN m.usr_age_upper_bound IS NOT NULL THEN 0.5 ELSE 0 END DESC LOOP
IF current_mp.circ_modifier IS NOT NULL THEN
- CONTINUE WHEN current_mp.circ_modifier <> item_object.circ_modifier;
+ CONTINUE WHEN current_mp.circ_modifier <> item_object.circ_modifier OR item_object.circ_modifier IS NULL;
END IF;
IF current_mp.marc_type IS NOT NULL THEN
Modified: trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql 2009-07-15 16:15:55 UTC (rev 13601)
+++ trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql 2009-07-15 16:48:39 UTC (rev 13602)
@@ -93,7 +93,7 @@
current_mp_weight := 5.0;
IF current_mp.circ_modifier IS NOT NULL THEN
- CONTINUE WHEN current_mp.circ_modifier <> item_object.circ_modifier;
+ CONTINUE WHEN current_mp.circ_modifier <> item_object.circ_modifier OR item_object.circ_modifier IS NULL;
END IF;
IF current_mp.marc_type IS NOT NULL THEN
More information about the open-ils-commits
mailing list