From 1d46ee77d1bc4e5938d45066570fb709bf8518c0 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 26 Mar 2013 17:57:36 +0100 Subject: fix @@external_user variable --- sql/sys_vars.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sql/sys_vars.h') diff --git a/sql/sys_vars.h b/sql/sys_vars.h index 95a8e45f7c3..8345a2836dd 100644 --- a/sql/sys_vars.h +++ b/sql/sys_vars.h @@ -547,8 +547,7 @@ public: protected: virtual uchar *session_value_ptr(THD *thd, LEX_STRING *base) { - return thd->security_ctx->proxy_user[0] ? - (uchar *) &(thd->security_ctx->proxy_user[0]) : NULL; + return (uchar*)thd->security_ctx->external_user; } }; -- cgit v1.2.1