Delimiter //
/**
 * Checks that the account's ref is not null
 *
 * @param int batchnum
 * @return void
 * @ticket #3928
*/
Drop Procedure if exists LOADER_ENTRIES_NORMALIZE_ACCOUNT_REF_NOT_NULL//

Create Procedure LOADER_ENTRIES_NORMALIZE_ACCOUNT_REF_NOT_NULL (
    In batchnum int
)
Begin
    CALL LOADER_ENTRIES_CHECK_NULL (
        'ACCOUNTS_REF'
        , batchnum, 0, null
    );
End //

Delimiter ;