refs #2687 feat: add grant privileges for guest
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
056dddd212
commit
b5d883cdbe
|
@ -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;
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue