DELIMITER $$ CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`travel_throwAwb`(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('A different AWB is found in the entries'); END IF; END$$ DELIMITER ;