20 lines
476 B
SQL
20 lines
476 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_getTooLittleProblem`(
|
|
vSelf INT
|
|
)
|
|
BEGIN
|
|
/**
|
|
* Actualiza los problemas cuando el ticket es demasiado pequeño o deja de serlo
|
|
*
|
|
* @param vSelf Id del ticket
|
|
*/
|
|
CREATE OR REPLACE TEMPORARY TABLE tmp.ticket
|
|
(INDEX(ticketFk))
|
|
ENGINE = MEMORY
|
|
SELECT vSelf ticketFk, ticket_isTooLittle(vSelf);
|
|
|
|
CALL ticket_setProblem('isTooLittle');
|
|
|
|
DROP TEMPORARY TABLE tmp.ticket;
|
|
END$$
|
|
DELIMITER ; |