#At file:///home/kgeorge/mysql/work/B58350-5.5-bugteam/ based on revid:sergey.vojtovich@stripped
3191 Georgi Kodinov 2010-12-08
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
modified:
sql/sp_head.cc
sql/sql_connect.cc
sql/sql_cursor.cc
sql/sql_parse.cc
sql/sql_prepare.cc
=== modified file 'sql/sp_head.cc'
--- a/sql/sp_head.cc 2010-11-18 15:01:58 +0000
+++ b/sql/sp_head.cc 2010-12-08 16:47:21 +0000
@@ -3159,7 +3159,7 @@ sp_instr_stmt::exec_core(THD *thd, uint
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,
3);
int res= mysql_execute_command(thd);
=== modified file 'sql/sql_connect.cc'
--- a/sql/sql_connect.cc 2010-12-14 14:34:23 +0000
+++ b/sql/sql_connect.cc 2010-12-08 16:47:21 +0000
@@ -736,7 +736,7 @@ void do_handle_one_connection(THD *thd_a
if (rc)
goto end_thread;
- MYSQL_CONNECTION_START(thd->thread_id, thd->security_ctx->priv_user,
+ MYSQL_CONNECTION_START(thd->thread_id, &thd->security_ctx->priv_user[0],
(char *) thd->security_ctx->host_or_ip);
prepare_new_connection_state(thd);
=== modified file 'sql/sql_cursor.cc'
--- a/sql/sql_cursor.cc 2010-11-12 12:56:21 +0000
+++ b/sql/sql_cursor.cc 2010-12-08 16:47:21 +0000
@@ -111,7 +111,7 @@ int mysql_open_cursor(THD *thd, select_r
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);
=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc 2010-12-14 14:34:23 +0000
+++ b/sql/sql_parse.cc 2010-12-08 16:47:21 +0000
@@ -877,7 +877,7 @@ bool dispatch_command(enum enum_server_c
thd->profiling.start_new_query();
#endif
MYSQL_COMMAND_START(thd->thread_id, command,
- thd->security_ctx->priv_user,
+ &thd->security_ctx->priv_user[0],
(char *) thd->security_ctx->host_or_ip);
thd->command=command;
@@ -1018,7 +1018,7 @@ bool dispatch_command(enum enum_server_c
break; // fatal error is set
MYSQL_QUERY_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);
char *packet_end= thd->query() + thd->query_length();
/* 'b' stands for 'buffer' parameter', special for 'my_snprintf' */
@@ -1070,7 +1070,7 @@ bool dispatch_command(enum enum_server_c
MYSQL_QUERY_START(beginning_of_next_stmt, 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);
thd->set_query_and_id(beginning_of_next_stmt, length,
@@ -5489,7 +5489,7 @@ void mysql_parse(THD *thd, char *rawbuf,
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,
0);
=== modified file 'sql/sql_prepare.cc'
--- a/sql/sql_prepare.cc 2010-12-14 10:46:00 +0000
+++ b/sql/sql_prepare.cc 2010-12-08 16:47:21 +0000
@@ -3759,7 +3759,7 @@ bool Prepared_statement::execute(String
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,
1);
error= mysql_execute_command(thd);
Attachment: [text/bzr-bundle] bzr/georgi.kodinov@oracle.com-20101208164721-8vrwi8wck8vojjbj.bundle
| Thread |
|---|
| • bzr commit into mysql-5.5-bugteam branch (Georgi.Kodinov:3191) Bug#58350 | Georgi Kodinov | 14 Dec |