Index: openacs-4/packages/categories/sql/postgresql/category-package.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/categories/sql/postgresql/category-package.sql,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/categories/sql/postgresql/category-package.sql	24 Feb 2005 13:33:05 -0000	1.6
+++ openacs-4/packages/categories/sql/postgresql/category-package.sql	1 Oct 2007 09:46:57 -0000	1.7
@@ -326,11 +326,13 @@
 end;
 ' language 'plpgsql';
 
+
 create or replace function category__name (
     integer   -- category_id
 )
 returns integer as '
 declare
+    p_category_id       alias for $1;
     v_name      varchar;
 begin
 	select name into v_name
