DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`travel_throwAWBError`(vSelf INT) BEGIN /** * Throws an error if travel does not have a logical AWB * or there are several AWBs associated with the same DUA * * @param vSelf The travel id */ IF NOT travel_hasUniqueAwb(vSelf) THEN CALL util.throw('The AWB is incorrect, there is a different AWB in the associated entries'); END IF; END$$ DELIMITER ;