sql
This commit is contained in:
@@ -101,7 +101,7 @@ test_master_id = __test_master_id
|
||||
where file_syspk=__file_syspk and file_sheet_mnemonic =__file_sheet_mnemonic;
|
||||
|
||||
update transactional.test_instance a
|
||||
set (test_location_name,test_engineer,date_of_test) = (select place,test_engineer,TO_DATE(test_date, 'DD/MM/YYYY') from staging2.PTOBEN_PRF_Key_Performance_Parameters_block where file_syspk = __file_syspk and test_condition='observed')
|
||||
set (test_location_name,test_engineer,date_of_test) = (select place,test_engineer,test_date::date from staging2.PTOBEN_PRF_Key_Performance_Parameters_block where file_syspk = __file_syspk and test_condition='observed')
|
||||
where file_syspk = __file_syspk;
|
||||
|
||||
UPDATE transactional.pto_multipoint_mapping a set test_mode = CASE WHEN a.test_condition like '%Normal%' THEN 'Normal'
|
||||
@@ -111,6 +111,20 @@ UPDATE transactional.pto_multipoint_mapping a set test_mode = CASE WHEN a.test_
|
||||
ELSE NULL
|
||||
end;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
update transactional.test_instance
|
||||
set test_type = a.test_type,
|
||||
test_name= a.test_name
|
||||
from fw_core.test_file_sheet_format_master a
|
||||
where transactional.test_instance.file_sheet_mnemonic = a.file_sheet_mnemonic
|
||||
and transactional.test_instance.file_syspk=__file_syspk;
|
||||
|
||||
|
||||
|
||||
err_context := '';
|
||||
perform fw_core.fn_insert_db_error ( __client_id, __function_id, 1001, 'Compegence', __file_syspk ,__file_mnemonic,__file_sheet_mnemonic ,null,'trx', 'fn_PTO_MPM_TRX', err_state, err_msg, err_detail, err_hint, err_context,'success');
|
||||
return err_context;
|
||||
|
||||
Reference in New Issue
Block a user