Instead of alloc a new buf and then copy all content with the correct format in Query_log_event::do_apply_event(), Oracle alloc the extra db_len and then copy the size to get the matched buf in Query_log_event::Query_log_event().
Patch could ref to http://bazaar.launchpad.net/~mysql/mysql-server/5.5/revision/3837
They are opposite though to solve this problem.
Instead of alloc a new buf and then copy all content with the correct format in Query_log_ event:: do_apply_ event() , Oracle alloc the extra db_len and then copy the size to get the matched buf in Query_log_ event:: Query_log_ event() .
Patch could ref to http:// bazaar. launchpad. net/~mysql/ mysql-server/ 5.5/revision/ 3837
They are opposite though to solve this problem.