summaryrefslogtreecommitdiff
path: root/sql/sys_vars.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-03-26 17:57:36 +0100
committerSergei Golubchik <sergii@pisem.net>2013-03-26 17:57:36 +0100
commit1d46ee77d1bc4e5938d45066570fb709bf8518c0 (patch)
treef01ac00764eed623a08a6d9a862fb8990d71c039 /sql/sys_vars.h
parent03d08bedf1cccc7721a88e2808ee030c3e9590e2 (diff)
downloadmariadb-git-1d46ee77d1bc4e5938d45066570fb709bf8518c0.tar.gz
fix @@external_user variable
Diffstat (limited to 'sql/sys_vars.h')
-rw-r--r--sql/sys_vars.h3
1 files changed, 1 insertions, 2 deletions
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;
}
};