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

11 lines
245 B
MySQL
Raw Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`bankEntity_beforeUpdate`
BEFORE UPDATE ON `bankEntity`
FOR EACH ROW
BEGIN
IF NOT (NEW.bic <=> OLD.bic) THEN
CALL bankEntity_checkBic(NEW.bic);
END IF;
END$$
DELIMITER ;