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

SHOW CREATE ROUTINE does not apply to roles

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      create user u@localhost;
      create role r;
      create procedure p1() select 10 as ten;
      grant execute on procedure test.p1 to u@localhost;
      grant execute on procedure test.p1 to r;
      grant r to u@localhost;
       
      connect u, localhost, u;
      call p1();
      query_vertical show create procedure p1;
      set role r;
      query_vertical Show create procedure p1;
      disconnect u;
       
      connection default;
      drop role r;
      drop user u@localhost;
      drop procedure p1;
      

      Reported by Aisle Research

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.