Commit bc564fd0 authored by unknown's avatar unknown

fixed bug in mysqlbinlog

parent 61a9643d
......@@ -455,7 +455,7 @@ void Query_log_event::print(FILE* file, bool short_form, char* last_db)
if(db && last_db)
{
if(!(same_db = !memcmp(last_db, db, db_len)))
if(!(same_db = !memcmp(last_db, db, db_len + 1)))
memcpy(last_db, db, db_len + 1);
}
......@@ -646,7 +646,7 @@ void Load_log_event::print(FILE* file, bool short_form, char* last_db)
if(db && last_db)
{
if(!(same_db = !memcmp(last_db, db, db_len)))
if(!(same_db = !memcmp(last_db, db, db_len + 1)))
memcpy(last_db, db, db_len + 1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment