Bug #76641 Inconsistent quoting of @@session.proxy_user

Submitted: 9 Apr 2015 14:34
Reporter: Todd Farmer (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Security: Privileges Severity:S3 (Non-critical)
Version:5.7.7 OS:Any
Assigned to: CPU Architecture:Any

[9 Apr 2015 14:34] Todd Farmer
Description:
The @@session.proxy_user variable is quoted in ways inconsistent with the output from USER() and CURRENT_USER():

mysql> SELECT USER(), CURRENT_USER(), @@session.proxy_user;
+-------------------+----------------------+-----------------------+
| USER()            | CURRENT_USER()       | @@session.proxy_user  |
+-------------------+----------------------+-----------------------+
| admin_1@localhost | proxy_base@localhost | 'admin_1'@'localhost' |
+-------------------+----------------------+-----------------------+
1 row in set (0.00 sec)

It's not readily apparent why this inconsistency exists.

How to repeat:
See above.

Suggested fix:
Explain the reasons behind the quoting, and/or make consistent with USER() and CURRENT_USER() output.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.