summaryrefslogtreecommitdiff
path: root/sql/sql_cursor.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-12-08 18:47:21 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-12-08 18:47:21 +0200
commit1c4a8872ebbe47b0f10adc5caa849461b383e549 (patch)
treef13ef41527db2e97c71d633c7e230084edaca873 /sql/sql_cursor.cc
parent9a3e46c520e857c9e32eebc612fe00991dcc5fe3 (diff)
downloadmariadb-git-1c4a8872ebbe47b0f10adc5caa849461b383e549.tar.gz
Bug #58350: 5.5.7-rc compile failed at sp_head.cc
Fixed the references to security_ctx->priv_user to be real char * pointers instead of a C array name reference. This is somehow important for some 3d party dtrace replacements
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r--sql/sql_cursor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc
index acc591f1ea2..f607936d5b9 100644
--- a/sql/sql_cursor.cc
+++ b/sql/sql_cursor.cc
@@ -111,7 +111,7 @@ int mysql_open_cursor(THD *thd, select_result *result,
MYSQL_QUERY_EXEC_START(thd->query(),
thd->thread_id,
(char *) (thd->db ? thd->db : ""),
- thd->security_ctx->priv_user,
+ &thd->security_ctx->priv_user[0],
(char *) thd->security_ctx->host_or_ip,
2);
rc= mysql_execute_command(thd);