Index: openacs-4/packages/search/sql/postgresql/search-packages-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/search/sql/postgresql/search-packages-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/search/sql/postgresql/search-packages-create.sql	2 Sep 2001 18:11:39 -0000	1.1
+++ openacs-4/packages/search/sql/postgresql/search-packages-create.sql	2 Jul 2002 01:52:39 -0000	1.2
@@ -25,14 +25,14 @@
 returns integer as '
 declare
     p_object_id			alias for $1;
-    p_date			alias for $2;
+    p_event_date		alias for $2;
     p_event			alias for $3;
 begin
 
     delete from search_observer_queue 
     where object_id = p_object_id 
-    and date =p_date
-    and event = p_event;
+    and event = p_event
+    and event_date = p_event_date;
 
     return 0;
 
