DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`photocell_setActive`(vBufferFk int, vPosition int, vIsActive bool) BEGIN REPLACE srt.photocell VALUES (vbufferFk, vPosition, vIsActive); END$$ DELIMITER ;