16 lines
332 B
SQL
16 lines
332 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_requestRecalc`(vSelf INT)
|
|
proc: BEGIN
|
|
/**
|
|
* Adds a request to recalculate the ticket total.
|
|
*
|
|
* @param vSelf The ticket identifier
|
|
*/
|
|
IF vSelf IS NULL THEN
|
|
LEAVE proc;
|
|
END IF;
|
|
|
|
INSERT INTO ticketRecalc SET ticketFk = vSelf;
|
|
END$$
|
|
DELIMITER ;
|