1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fixed bug in mysqlbinlog

This commit is contained in:
sasha@mysql.sashanet.com
2001-04-25 15:20:59 -06:00
parent 41b502fc8b
commit bdb8077a55

View File

@@ -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);
}