1
create table t1 (a varchar(50));
5
INSERT INTO t1 VALUES(@`a b`);
7
SET @var2=char(ascii('a'));
8
insert into t1 values (@var1),(@var2);
9
show binlog events from <binlog_start>;
10
Log_name Pos Event_type Server_id End_log_pos Info
11
master-bin.000001 # User var # # @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
12
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES(@`a b`)
13
master-bin.000001 # User var # # @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
14
master-bin.000001 # User var # # @`var2`=_binary 0x61 COLLATE binary
15
master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)
17
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
18
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
21
SET @`a b`:=_latin1 0x68656C6C6F COLLATE `latin1_swedish_ci`/*!*/;
23
SET TIMESTAMP=10000/*!*/;
24
SET @@session.pseudo_thread_id=999999999/*!*/;
25
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
26
SET @@session.sql_mode=0/*!*/;
27
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
29
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
30
SET @@session.lc_time_names=0/*!*/;
31
SET @@session.collation_database=DEFAULT/*!*/;
32
INSERT INTO t1 VALUES(@`a b`)
34
SET @`var1`:=_latin1 0x273B616161 COLLATE `latin1_swedish_ci`/*!*/;
35
SET @`var2`:=_binary 0x61 COLLATE `binary`/*!*/;
36
SET TIMESTAMP=10000/*!*/;
37
insert into t1 values (@var1),(@var2)
41
ROLLBACK /* added by mysqlbinlog */;
42
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;