#At file:///home/kgeorge/mysql/work/B58350-trunk-bugfixing/ based on revid:sergey.vojtovich@stripped
3430 Georgi Kodinov 2010-12-14 [merge]
merge
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-12-06 13:12:51 +0000
+++ b/sql/sp_head.cc 2010-12-14 15:12:13 +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:38:42 +0000
+++ b/sql/sql_connect.cc 2010-12-14 15:12:13 +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-18 16:34:56 +0000
+++ b/sql/sql_cursor.cc 2010-12-14 15:12:13 +0000
@@ -112,7 +112,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:38:42 +0000
+++ b/sql/sql_parse.cc 2010-12-14 15:12:13 +0000
@@ -920,7 +920,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->set_command(command);
@@ -1061,7 +1061,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' */
@@ -1113,7 +1113,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,
@@ -5530,7 +5530,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 11:15:13 +0000
+++ b/sql/sql_prepare.cc 2010-12-14 15:12:13 +0000
@@ -3760,7 +3760,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);
No bundle (reason: revision is a merge (you can force generation of a bundle with env var BZR_FORCE_BUNDLE=1)).
| Thread |
|---|
| • bzr commit into mysql-trunk-bugfixing branch (Georgi.Kodinov:3430) | Georgi Kodinov | 14 Dec |