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

Request: Make CREATE/DROP/SET ROLE usable in stored programs

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: 10.1
    • Component/s: None
    • Labels:
      None

      Description

      CREATE/DROP/SET ROLE work in stored procedures. However, they can only be used with a constant role name. To make the role name variable, IMO you could do one of these things:
      a) Allow use of variables:
      CREATE ROLE local_var, @user_var;
      b) Allow CREATE/DROP in prepared statements. Currently they are not allowed.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            it should probably be done both for users and roles

            Show
            serg Sergei Golubchik added a comment - it should probably be done both for users and roles

              People

              • Assignee:
                Unassigned
                Reporter:
                f_razzoli Federico Razzoli
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  Remaining Estimate - 1 week
                  1w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified