19 lines
389 B
SQL
19 lines
389 B
SQL
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 ;
|