Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19704

GRANT EXECUTE lower procedure name

    XMLWordPrintable

    Details

      Description

      If you create a function or procedure, on GRANT MariaDB lower its name so the user will not have the privilege to execute ir.

      DELIMITER |
      DROP FUNCTION IF EXISTS FUNCTION `ERPUniversitario`.`faBecas_ResolucionesDetalleAprobar`; |
      CREATE DEFINER = CURRENT_USER() FUNCTION `ERPUniversitario`.`faBecas_ResolucionesDetalleAprobar`() RETURNS TINYINT UNSIGNED
      BEGIN
      RETURN 1;
      END; |
      GRANT EXECUTE ON FUNCTION `ERPUniversitario`.`faBecas_ResolucionesDetalleAprobar` TO 'ERPUniversitario'@'10.100.20.0/255.255.255.0'; |
      SHOW GRANTS FOR 'ERPUniversitario'@'10.100.20.0/255.255.255.0'; |
      DELIMITER ;

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dvillalobos David Villalobos Cambronero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: