[MDEV-5522] Make CREATE/DROP/SET ROLE usable in stored programs Created: 2014-01-13 Updated: 2016-03-24 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Data Definition - Procedure |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Federico Razzoli | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| 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: |
| Comments |
| Comment by Sergei Golubchik [ 2014-04-17 ] |
|
it should probably be done both for users and roles |
| Comment by Federico Razzoli [ 2016-03-24 ] |
|
Not useless, though: having to use a prepared statement to execute a certain statement in a procedure can be annoying. |
| Comment by Sergei Golubchik [ 2016-03-24 ] |
|
Yes, allowing existing syntax to be prepared is one thing (it's |