postgresql7.1 insert into cal_item_types (item_type_id, calendar_id, type) select nextval('t_acs_object_id_seq'), :calendar_id, type from cal_item_types where calendar_id = :old_calendar_id