1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix for BUG#7793 "mysqlbinlog produces incorrect queries":

when printing SET @var in mysqlbinlog, backtick the collation (as BINARY is a reserved word)
This commit is contained in:
guilhem@mysql.com
2005-01-12 19:42:46 +01:00
parent 373dbb4750
commit 44ce4b43ef
4 changed files with 12 additions and 8 deletions

View File

@@ -2459,7 +2459,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db)
*/
fprintf(file, ":=???;\n");
else
fprintf(file, ":=_%s %s COLLATE %s;\n", cs->csname, hex_str, cs->name);
fprintf(file, ":=_%s %s COLLATE `%s`;\n", cs->csname, hex_str, cs->name);
my_afree(hex_str);
}
break;