2023-12-11 13:53:55 +00:00
|
|
|
DROP PROCEDURE IF EXISTS util.tx_commit;
|
|
|
|
|
|
|
|
DELIMITER $$
|
|
|
|
$$
|
2024-01-23 07:33:15 +00:00
|
|
|
/*
|
|
|
|
Procedimiento para confirmar los cambios asociados a una transacción
|
|
|
|
* @param tx BOOL es true si existe transacción asociada
|
|
|
|
*/
|
|
|
|
|
2023-12-11 13:53:55 +00:00
|
|
|
CREATE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_commit`(IN tx BOOL)
|
|
|
|
BEGIN
|
|
|
|
IF tx THEN
|
|
|
|
COMMIT;
|
|
|
|
END IF;
|
|
|
|
END
|
|
|
|
$$
|
|
|
|
DELIMITER ;
|