Commit 183af62f authored by sasha@mysql.sashanet.com's avatar sasha@mysql.sashanet.com

Merge work:/home/bk/mysql

into mysql.sashanet.com:/home/sasha/src/bk/mysql
parents 6261dafb bdb8077a
......@@ -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