Index: openacs-4/packages/acs-events/sql/postgresql/oracle-compat-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-events/sql/postgresql/oracle-compat-create.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-events/sql/postgresql/oracle-compat-create.sql	13 Jul 2001 02:48:51 -0000	1.1
+++ openacs-4/packages/acs-events/sql/postgresql/oracle-compat-create.sql	22 Jul 2002 21:46:19 -0000	1.2
@@ -78,14 +78,14 @@
        integer,
        varchar
 )
-returns interval as '	
+returns timespan as '	
 declare    
        interval__number	     alias for $1;
        interval__units	     alias for $2;
 begin
 
 	-- We should probably do unit checking at some point
-	return '''''''' || interval__number || '' '' || interval__units || '''''''' || ''::interval'';
+	return ('''''''' || interval__number || '' '' || interval__units || '''''''')::timespan;
 
 end;' language 'plpgsql';
 
