#2687 - Travel CloneWithEntries #1887

Merged
jsegarra merged 20 commits from 2687_travel_cloneWithEntries into dev 2024-01-24 10:55:20 +00:00
4 changed files with 7 additions and 8 deletions
Showing only changes of commit b5d883cdbe - Show all commits

View File

@ -0,0 +1,3 @@
GRANT EXECUTE ON PROCEDURE util.tx_commit TO guest;
GRANT EXECUTE ON PROCEDURE util.tx_rollback TO guest;
GRANT EXECUTE ON PROCEDURE util.tx_start TO guest;

View File

@ -1,5 +1,3 @@
DROP PROCEDURE IF EXISTS util.tx_commit;
DELIMITER $$
$$
/**
@ -8,7 +6,7 @@ $$
* @param tx BOOL es true si existe transacción asociada
*/
CREATE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_commit`(IN tx BOOL)
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_commit`(IN tx BOOL)
BEGIN
IF tx THEN
COMMIT;

View File

@ -1,5 +1,3 @@
DROP PROCEDURE IF EXISTS util.tx_rollback;
DELIMITER $$
$$
/**
@ -8,7 +6,7 @@ $$
* @param tx BOOL es true si existe transacción asociada
*/
CREATE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_rollback`(tx BOOL)
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_rollback`(tx BOOL)
BEGIN
IF tx THEN
ROLLBACK;

View File

@ -1,4 +1,4 @@
DROP PROCEDURE IF EXISTS util.tx_start;
DELIMITER $$
$$
@ -8,7 +8,7 @@ $$
* @param tx BOOL es true si existe transacción asociada
*/
CREATE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_start`(tx BOOL)
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_start`(tx BOOL)
BEGIN
IF tx THEN
START TRANSACTION;