Index: openacs-4/contrib/obsolete-packages/bboard/sql/postgresql/bboard-packages.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/obsolete-packages/bboard/sql/postgresql/bboard-packages.sql,v
diff -u -r1.4 -r1.5
--- openacs-4/contrib/obsolete-packages/bboard/sql/postgresql/bboard-packages.sql	1 Dec 2001 22:25:53 -0000	1.4
+++ openacs-4/contrib/obsolete-packages/bboard/sql/postgresql/bboard-packages.sql	9 Dec 2001 04:21:58 -0000	1.5
@@ -500,9 +500,9 @@
     child_val record;
     message_val record;
     image_p integer;
-    v_search_key varchar;
+    v_search_key varbit;
 begin
-    select into v_search_key
+    select tree_sortkey into v_search_key
       from acs_messages
      where message_id = thread_id;
 
