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

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

Delimiter ;