DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticketClon`(vTicketFk INT, vNewShipped DATE) BEGIN DECLARE vNewTicketFk INT; CALL ticket_CloneAll(vTicketFk, vNewShipped, TRUE, vNewTicketFk); SELECT vNewTicketFk; END$$ DELIMITER ;