[open-ils-commits] r10074 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 18 11:00:43 EDT 2008
Author: miker
Date: 2008-07-18 11:00:41 -0400 (Fri, 18 Jul 2008)
New Revision: 10074
Modified:
trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Log:
protect against "no bump for type"
Modified: trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2008-07-18 14:59:07 UTC (rev 10073)
+++ trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2008-07-18 15:00:41 UTC (rev 10074)
@@ -191,8 +191,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