tww
.tww_app
Tables
(current)
Columns
Constraints
Relationships
Orphan Tables
Anomalies
Routines
ft_vw_bio_ecol_assessment_insert()
Parameters
Name
Type
Mode
IN
Definition
BEGIN INSERT INTO tww_od.maintenance_event ( obj_id , base_data , cost , data_details , duration , fk_dataowner , fk_measure , fk_operating_company , fk_provider , identifier , last_modification , operator , reason , remark , result , status , time_point ) VALUES ( COALESCE( NEW.obj_id, tww_app.generate_oid('tww_od'::text, 'bio_ecol_assessment'::text) ) , NEW.base_data , NEW.cost , NEW.data_details , NEW.duration , NEW.fk_dataowner , NEW.fk_measure , NEW.fk_operating_company , NEW.fk_provider , NEW.identifier , NEW.last_modification , NEW.operator , NEW.reason , NEW.remark , NEW.result , NEW.status , NEW.time_point ) RETURNING obj_id INTO NEW.obj_id; INSERT INTO tww_od.bio_ecol_assessment ( obj_id , comparison_last , date_last_examen , impact_auxiliary_indic , impact_external_aspect , impact_macroinvertebrates , impact_water_plants , intervention_demand , io_calculation , kind_water_body , outlet_pipe_clear_height , q347 , relevance_matrix , relevant_slope , surface_water_bodies , water_specific_discharge_freight_nh4_n_current , water_specific_discharge_freight_nh4_n_current_opt , water_specific_discharge_freight_nh4_n_planned ) VALUES ( NEW.obj_id , NEW.comparison_last , NEW.date_last_examen , NEW.impact_auxiliary_indic , NEW.impact_external_aspect , NEW.impact_macroinvertebrates , NEW.impact_water_plants , NEW.intervention_demand , NEW.io_calculation , NEW.kind_water_body , NEW.outlet_pipe_clear_height , NEW.q347 , NEW.relevance_matrix , NEW.relevant_slope , NEW.surface_water_bodies , NEW.water_specific_discharge_freight_nh4_n_current , NEW.water_specific_discharge_freight_nh4_n_current_opt , NEW.water_specific_discharge_freight_nh4_n_planned ); RETURN NEW; END;