diff options
author | Rohit Kalhans <rohit.kalhans@oracle.com> | 2012-09-23 15:45:22 +0530 |
---|---|---|
committer | Rohit Kalhans <rohit.kalhans@oracle.com> | 2012-09-23 15:45:22 +0530 |
commit | 6d0574d3062d782763dab711004dfde51fb83af1 (patch) | |
tree | fbc86f266aecfc94e9c04404c4476469206765a2 /sql/log_event.cc | |
parent | 5f003eca000167edc3601168029a7d86468e52a8 (diff) | |
download | mariadb-git-6d0574d3062d782763dab711004dfde51fb83af1.tar.gz |
BUG#14548159: Followup patch to fix some issues on PB2
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 829ee06d20e..c3ba969cf1f 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -4259,7 +4259,7 @@ uint Load_log_event::get_query_buffer_length() void Load_log_event::print_query(bool need_db, const char *cs, char *buf, char **end, char **fn_start, char **fn_end) { - char quoted_id[1 + NAME_LEN * 2 + 2];//quoted length + char quoted_id[1 + NAME_LEN * 2 + 2];//quoted length int quoted_id_len= 0; char *pos= buf; @@ -4272,7 +4272,8 @@ void Load_log_event::print_query(bool need_db, const char *cs, char *buf, #else quoted_id_len= my_strmov_quoted_identifier((char *) quoted_id, db); #endif - pos+= quoted_id_len; + quoted_id[quoted_id_len]= '\0'; + pos= strmov(pos, quoted_id); pos= strmov(pos, "; "); } |