Delimiter //
/**
 * Author:  armen
 * Created: 20 juil. 2020
 */
Drop Procedure if exists LOADER_CREDITPROVIDERS_NORMALIZE_CHECK_REF_PROVIDED //
Create Procedure LOADER_CREDITPROVIDERS_NORMALIZE_CHECK_REF_PROVIDED (
    In batchnum int
)
Begin
    Set @flagCountField='LOADER_CREDITPROVIDERS_ERRCOUNT';
    Set @flagMsgField='LOADER_CREDITPROVIDERS_ERRMSGS';
    Set @lastStatusField=null;
    Set @lastStatus=null;
    Set @checkedFieldName = 'CREDITS_PROVIDERS_REF';

    CALL LOADER_CHECK_NULL (
        'LOADER_CREDITPROVIDERS'
        , @checkedFieldName
        , 'LOADER_CREDITPROVIDERS_BATCH_NUM'
        , batchnum
        , @flagCountField
        , @flagMsgField
        , @lastStatusField
        , @lastStatus
    );
End //
Delimiter ;
