#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 $$ DELIMITER $$
$$ $$
/** /**
@ -8,7 +6,7 @@ $$
* @param tx BOOL es true si existe transacción asociada * @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 BEGIN
IF tx THEN IF tx THEN
COMMIT; COMMIT;

View File

@ -1,5 +1,3 @@
DROP PROCEDURE IF EXISTS util.tx_rollback;
DELIMITER $$ DELIMITER $$
$$ $$
/** /**
@ -8,7 +6,7 @@ $$
* @param tx BOOL es true si existe transacción asociada * @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 BEGIN
IF tx THEN IF tx THEN
ROLLBACK; ROLLBACK;

View File

@ -1,4 +1,4 @@
DROP PROCEDURE IF EXISTS util.tx_start;
DELIMITER $$ DELIMITER $$
$$ $$
@ -8,7 +8,7 @@ $$
* @param tx BOOL es true si existe transacción asociada * @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 BEGIN
IF tx THEN IF tx THEN
START TRANSACTION; START TRANSACTION;