salix/db/routines/vn/triggers/zoneGeo_beforeUpdate.sql

11 lines
249 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` TRIGGER `vn`.`zoneGeo_beforeUpdate`
BEFORE UPDATE ON `zoneGeo`
FOR EACH ROW
BEGIN
IF !(OLD.`name` <=> NEW.`name`) THEN
CALL zoneGeo_checkName(NEW.`name`);
END IF;
END$$
DELIMITER ;