Index: openacs-4/packages/calendar/sql/oracle/cal-item-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/sql/oracle/cal-item-create.sql,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/calendar/sql/oracle/cal-item-create.sql 17 Mar 2002 19:54:04 -0000 1.7
+++ openacs-4/packages/calendar/sql/oracle/cal-item-create.sql 25 Apr 2002 16:42:26 -0000 1.8
@@ -108,6 +108,10 @@
procedure delete (
cal_item_id in cal_items.cal_item_id%TYPE
);
+
+ procedure delete_all (
+ recurrence_id in acs_events.recurrence_id%TYPE
+ );
-- functions to return the name of the cal_item
function name (
@@ -213,6 +217,21 @@
acs_event.delete(cal_item_id);
end delete;
+ procedure delete_all (
+ recurrence_id in acs_events.recurrence_id%TYPE
+ ) is
+ v_event_id acs_events%ROWTYPE;
+ begin
+ FOR v_event_id in
+ (select * from acs_events
+ where recurrence_id = delete_all.recurrence_id)
+ LOOP
+ cal_item.delete(v_event_id.event_id);
+ end LOOP;
+
+ recurrence.delete(recurrence_id);
+ end delete_all;
+
-- functions to return the name of the cal_item
function name (
cal_item_id in cal_items.cal_item_id%TYPE
Index: openacs-4/packages/calendar/sql/postgresql/cal-item-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/sql/postgresql/cal-item-create.sql,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/calendar/sql/postgresql/cal-item-create.sql 16 Apr 2002 05:16:42 -0000 1.7
+++ openacs-4/packages/calendar/sql/postgresql/cal-item-create.sql 25 Apr 2002 16:42:26 -0000 1.8
@@ -188,6 +188,27 @@
end;' LANGUAGE 'plpgsql';
+CREATE FUNCTION cal_item__delete_all (
+ integer
+)
+RETURNS integer AS '
+declare
+ delete__recurrence_id alias for $1;
+ v_event_id integer;
+begin
+ for v_event_id in (select event_id from acs_events
+ where recurrence_id= delete__recurrence_id)
+ LOOP
+ PERFORM cal_item__delete(v_event_id);
+ END LOOP;
+
+ PERFORM recurrence__delete(delete__recurrence_id);
+
+ return 0;
+
+end;' LANGUAGE 'plpgsql';
+
+
-------------------------------------------------------------
-- the name function
-------------------------------------------------------------
Index: openacs-4/packages/calendar/tcl/cal-item-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/tcl/cal-item-procs-oracle.xql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/calendar/tcl/cal-item-procs-oracle.xql 24 Aug 2001 01:19:03 -0000 1.1
+++ openacs-4/packages/calendar/tcl/cal-item-procs-oracle.xql 25 Apr 2002 16:42:26 -0000 1.2
@@ -137,5 +137,17 @@
+
Date and Time: | @item_data.start_date@, from @item_data.start_time@ to @item_data.end_time@ |
---|---|
@description@ | |
Date and Time: | @item_data.start_date@, from @item_data.start_time@ to @item_data.end_time@ |
Title: | @item_data.name@ |
Type: | @item_data.item_type@ |
-