1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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

@ -107,7 +107,8 @@ SET TIMESTAMP=10000;
SET @`a b`='hello';
INSERT INTO t1 VALUES(@`a b`);
set @var1= "';aaa";
insert into t1 values (@var1);
SET @var2=char(ascii('a'));
insert into t1 values (@var1),(@var2);
show binlog events from 79;
# more important than SHOW BINLOG EVENTS, mysqlbinlog (where we
# absolutely need variables names to be quoted and strings to be