Index: openacs-4/packages/dotlrn/sql/postgresql/main-portlet-drop.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/postgresql/main-portlet-drop.sql,v
diff -u -r1.4 -r1.4.4.1
--- openacs-4/packages/dotlrn/sql/postgresql/main-portlet-drop.sql	1 Nov 2013 21:08:29 -0000	1.4
+++ openacs-4/packages/dotlrn/sql/postgresql/main-portlet-drop.sql	26 Feb 2017 16:11:50 -0000	1.4.4.1
@@ -101,7 +101,7 @@
     end;
 
   if ds_id is not null then
-    portal_datasource__delete(ds_id);
+    select portal_datasource__delete(ds_id);
   end if;
   
   return 0;
