Index: openacs-4/packages/ams/sql/postgresql/ams-package-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ams/sql/postgresql/ams-package-create.sql,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/ams/sql/postgresql/ams-package-create.sql	9 Feb 2006 23:30:03 -0000	1.9
+++ openacs-4/packages/ams/sql/postgresql/ams-package-create.sql	1 Dec 2006 16:48:34 -0000	1.10
@@ -115,9 +115,9 @@
         v_dynamic_p             boolean;
 begin
         select attribute_id, attribute_name, object_type, dynamic_p
-          info v_attribute_id, v_object_type, v_attribute_name, v_dynamic_p
+          into v_attribute_id, v_object_type, v_attribute_name, v_dynamic_p
           from ams_attributes
-         where ams_attribute_id = :ams_attribute_id;
+         where ams_attribute_id = p_ams_attribute_id;
 
         delete from ams_attribute_values where attribute_id = v_attribute_id;
 
@@ -208,13 +208,12 @@
   p_object_id              alias for $2;  
   v_value                  text;
 begin
-  val := ams_attribute_value__value(p_attribute_id,( select aav.value_id from ams_attribute_values aav where aav.object_id = p_object_id and aav.attribute_id = p_attribute_id));
+  v_value := ams_attribute_value__value(p_attribute_id,( select aav.value_id from ams_attribute_values aav where aav.object_id = p_object_id and aav.attribute_id = p_attribute_id));
 
   return v_value;
 end;' language 'plpgsql' stable strict;
 
 
-
 ------ Options                                        
 --------------------------------------------------------------------
 
@@ -755,4 +754,3 @@
     return v_next_instance;
 end;' language 'plpgsql';
 
-
