18 lines
432 B
SQL
18 lines
432 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`travel_checkRaid`(
|
|
vIsRaid BOOL,
|
|
vDaysInForward INT
|
|
)
|
|
BEGIN
|
|
/**
|
|
* Check if the values of isRaid and daysInforward are correct
|
|
*
|
|
* @param vIsRaid idRaid value
|
|
* @param vDaysInForward daysInForward value
|
|
*/
|
|
IF NOT vIsRaid AND vDaysInForward THEN
|
|
CALL util.throw('If daysInForward has a value, the raid cannot be unchecked');
|
|
END IF;
|
|
END$$
|
|
DELIMITER ;
|