[open-ils-commits] r10073 - branches/rel_1_2_2/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 18 10:59:09 EDT 2008
Author: miker
Date: 2008-07-18 10:59:07 -0400 (Fri, 18 Jul 2008)
New Revision: 10073
Modified:
branches/rel_1_2_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Log:
protect against "no bump for type"
Modified: branches/rel_1_2_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
===================================================================
--- branches/rel_1_2_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2008-07-18 14:51:06 UTC (rev 10072)
+++ branches/rel_1_2_2/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2008-07-18 14:59:07 UTC (rev 10073)
@@ -209,8 +209,10 @@
END IF;
- current_rank := current_rank || ' * ( CASE WHEN ' || tmp_text ||
- ' THEN ' || rank_adjust.multiplier || '::REAL ELSE 1.0 END )';
+ IF tmp_text IS NOT NULL THEN
+ current_rank := current_rank || ' * ( CASE WHEN ' || tmp_text ||
+ ' THEN ' || rank_adjust.multiplier || '::REAL ELSE 1.0 END )';
+ END IF;
used_ranks := array_append( used_ranks, rank_adjust.bump_type );
More information about the open-ils-commits
mailing list