DELIMITER $$ 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 ;