Details
-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Fix Version/s: N/A
-
Component/s: Data Definition - Procedure, Events, Triggers, Views
-
Labels:None
Description
Having current_user() return the definer of the procedure (when not set to current_user) isn't very useful. Having it return the real user is more useful and consistent with the function defination.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-6901 [PATCH] session.gtid_domain_id should be able to be set by non-SUPER user
-
- In Review
-
- links to
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
I don't think it's possible. SQL standard dictates that inside sql security definer routines, the value of the CURRENT_USER is the definer.