Delimiter //
/**
 * Add a Row in a business table
 *
 * @author Jean-François
 */
Drop Procedure If Exists LOADER_TEST_MOCK_BUSINESS_PUSH//
Create Procedure LOADER_TEST_MOCK_BUSINESS_PUSH(
    In tablename Varchar(80)
    , In datas Text
)
Begin

    call LOADER_TEST_MOCK_BUSINESS_START(tablename);

    Set FOREIGN_KEY_CHECKS = 0;
    Set @query = Concat('Replace Into ', Coalesce(tablename, ''), ' Set ', Coalesce(datas, '') );
    Prepare stmt From @query;
    Execute stmt;
    Deallocate prepare stmt;
    Set FOREIGN_KEY_CHECKS = 1;

End//
Delimiter ;