salix/db/routines/srt/procedures/buffer_setState.sql

19 lines
389 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `srt`.`buffer_setState`(vBufferFk INT(11), vStateFk INT(11))
BEGIN
/**
* Cambia el estado de un buffer
*
* @param vBufferFk Identificador de srt.buffer
* @param vStateFk Identificador de srt.bufferState
*
*/
UPDATE srt.buffer b
SET b.stateFk = vStateFk
WHERE b.id = vBufferFk;
END$$
DELIMITER ;