48: x_run_def2 NUMBER:=WIP_CONSTANTS.WARNING;
49: x_process_phase NUMBER:=WIP_CONSTANTS.ML_VALIDATION;
50: BEGIN
51: begin
52: x_cursor_id := dbms_sql.open_cursor;
53: dbms_sql.parse(x_cursor_id, x_statement, dbms_sql.native);
54: dbms_sql.bind_variable(x_cursor_id, 'x_group_id_bind',
55: to_char(p_group_id));
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
49: x_process_phase NUMBER:=WIP_CONSTANTS.ML_VALIDATION;
50: BEGIN
51: begin
52: x_cursor_id := dbms_sql.open_cursor;
53: dbms_sql.parse(x_cursor_id, x_statement, dbms_sql.native);
54: dbms_sql.bind_variable(x_cursor_id, 'x_group_id_bind',
55: to_char(p_group_id));
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
50: BEGIN
51: begin
52: x_cursor_id := dbms_sql.open_cursor;
53: dbms_sql.parse(x_cursor_id, x_statement, dbms_sql.native);
54: dbms_sql.bind_variable(x_cursor_id, 'x_group_id_bind',
55: to_char(p_group_id));
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
58: dbms_sql.bind_variable(x_cursor_id, 'x_process_phase_bind',
52: x_cursor_id := dbms_sql.open_cursor;
53: dbms_sql.parse(x_cursor_id, x_statement, dbms_sql.native);
54: dbms_sql.bind_variable(x_cursor_id, 'x_group_id_bind',
55: to_char(p_group_id));
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
58: dbms_sql.bind_variable(x_cursor_id, 'x_process_phase_bind',
59: to_char(x_process_phase));
60: x_num_rows := dbms_sql.execute(x_cursor_id);
53: dbms_sql.parse(x_cursor_id, x_statement, dbms_sql.native);
54: dbms_sql.bind_variable(x_cursor_id, 'x_group_id_bind',
55: to_char(p_group_id));
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
58: dbms_sql.bind_variable(x_cursor_id, 'x_process_phase_bind',
59: to_char(x_process_phase));
60: x_num_rows := dbms_sql.execute(x_cursor_id);
61: dbms_sql.close_cursor(x_cursor_id);
54: dbms_sql.bind_variable(x_cursor_id, 'x_group_id_bind',
55: to_char(p_group_id));
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
58: dbms_sql.bind_variable(x_cursor_id, 'x_process_phase_bind',
59: to_char(x_process_phase));
60: x_num_rows := dbms_sql.execute(x_cursor_id);
61: dbms_sql.close_cursor(x_cursor_id);
62: exception
56: dbms_sql.bind_variable(x_cursor_id, 'x_run_def1_bind',x_run_def1);
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
58: dbms_sql.bind_variable(x_cursor_id, 'x_process_phase_bind',
59: to_char(x_process_phase));
60: x_num_rows := dbms_sql.execute(x_cursor_id);
61: dbms_sql.close_cursor(x_cursor_id);
62: exception
63: when others then
64: record_bad_query(x_statement) ;
57: dbms_sql.bind_variable(x_cursor_id, 'x_run_def2_bind',x_run_def2);
58: dbms_sql.bind_variable(x_cursor_id, 'x_process_phase_bind',
59: to_char(x_process_phase));
60: x_num_rows := dbms_sql.execute(x_cursor_id);
61: dbms_sql.close_cursor(x_cursor_id);
62: exception
63: when others then
64: record_bad_query(x_statement) ;
65: commit ;