[MDEV-6733] Can't easily change DEFINER on existing views, stored routines, triggers, events Created: 2014-09-11 Updated: 2024-02-05 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
http://bugs.mysql.com/bug.php?id=73894 The question came up in the context of "DROP USER, how do I fix procedures afterwards?" A naive expectation would be that one could simply say
but this isn't really supported on any of the four object types:
e.g. "ALTER DEFINER=foo@bar EVENT e1 COMMENT='';" works
How to repeat: Suggested fix:
|
| Comments |
| Comment by Federico Razzoli [ 2015-06-04 ] |
|
Note that this cannot be done via a stored procedure, because CREATE PROCEDURE and similar statements are not allowed in a procedure body. If stored procedures were more powerful, implementing this feature in SQL would be simple. |
| Comment by Sergei Golubchik [ 2023-06-26 ] |
|
SET USER allows to set a definer, so it could also allow changing it |