[open-ils-commits] r8890 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 6 22:06:22 EST 2008


Author: miker
Date: 2008-03-06 21:33:47 -0500 (Thu, 06 Mar 2008)
New Revision: 8890

Modified:
   trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Log:
went too far with the aliasing

Modified: trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql	2008-03-07 01:59:40 UTC (rev 8889)
+++ trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql	2008-03-07 02:33:47 UTC (rev 8890)
@@ -209,7 +209,7 @@
               WHERE term_type = 'phrase'
                     AND table_alias = query_part.table_alias LOOP
 
-            inner_where_clause := inner_where_clause || ' AND ' || query_part.table_alias || '.value  ~* ' || quote_literal( E'(^|\\W+)' || regexp_replace(phrase_query_part.term, E'\\s+',E'\\\\s+','g') || E'(\\W+|\$)' );
+            inner_where_clause := inner_where_clause || ' AND ' || 'value  ~* ' || quote_literal( E'(^|\\W+)' || regexp_replace(phrase_query_part.term, E'\\s+',E'\\\\s+','g') || E'(\\W+|\$)' );
 
         END LOOP;
 



More information about the open-ils-commits mailing list