You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
3.1 KiB
71 lines
3.1 KiB
create table t1 (a varchar(50));
|
|
reset master;
|
|
SET TIMESTAMP=10000;
|
|
SET @`a b`='hello';
|
|
INSERT INTO t1 VALUES(@`a b`);
|
|
set @var1= "';aaa";
|
|
SET @var2=char(ascii('a'));
|
|
insert into t1 values (@var1),(@var2);
|
|
include/show_binlog_events.inc
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
binlog.000001 # Query # # BEGIN
|
|
binlog.000001 # User var # # @`a b`=_utf8mb4 0x68656C6C6F COLLATE utf8mb4_0900_ai_ci
|
|
binlog.000001 # Query # # use `test`; INSERT INTO t1 VALUES(@`a b`)
|
|
binlog.000001 # Xid # # COMMIT /* XID */
|
|
binlog.000001 # Query # # BEGIN
|
|
binlog.000001 # User var # # @`var1`=_utf8mb4 0x273B616161 COLLATE utf8mb4_0900_ai_ci
|
|
binlog.000001 # User var # # @`var2`=_binary 0x61 COLLATE binary
|
|
binlog.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)
|
|
binlog.000001 # Xid # # COMMIT /* XID */
|
|
flush logs;
|
|
include/mysqlbinlog.inc
|
|
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
|
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
|
DELIMITER /*!*/;
|
|
ROLLBACK/*!*/;
|
|
# [empty]
|
|
# original_commit_timestamp= MICROSECONDS-FROM-EPOCH (YYYY-MM-DD HOURS:MINUTES:SECONDS TZ)
|
|
# immediate_commit_timestamp= MICROSECONDS-FROM-EPOCH (YYYY-MM-DD HOURS:MINUTES:SECONDS TZ)
|
|
/*!80001 SET @@session.original_commit_timestamp= MICROSECONDS-FROM-EPOCH*//*!*/;
|
|
/*!80014 SET @@session.original_server_version= ORIGINAL_SERVER_VERSION*//*!*/;
|
|
/*!80014 SET @@session.immediate_server_version= IMMEDIATE_SERVER_VERSION*//*!*/;
|
|
SET @@SESSION.GTID_NEXT= '#'/*!*/;
|
|
SET TIMESTAMP=#/*!*/;
|
|
SET @@session.pseudo_thread_id=#/*!*/;
|
|
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
|
|
SET @@session.sql_mode=1168113696/*!*/;
|
|
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
|
/*!\C utf8mb4 *//*!*/;
|
|
SET @@session.character_set_client=255,@@session.collation_connection=255,@@session.collation_server=255/*!*/;
|
|
SET @@session.lc_time_names=0/*!*/;
|
|
SET @@session.collation_database=DEFAULT/*!*/;
|
|
/*!80011 SET @@session.default_collation_for_utf8mb4=255*//*!*/;
|
|
BEGIN
|
|
/*!*/;
|
|
SET @`a b`:=_utf8mb4 0x68656C6C6F COLLATE `utf8mb4_0900_ai_ci`/*!*/;
|
|
use `test`/*!*/;
|
|
SET TIMESTAMP=#/*!*/;
|
|
INSERT INTO t1 VALUES(@`a b`)
|
|
/*!*/;
|
|
COMMIT/*!*/;
|
|
# original_commit_timestamp= MICROSECONDS-FROM-EPOCH (YYYY-MM-DD HOURS:MINUTES:SECONDS TZ)
|
|
# immediate_commit_timestamp= MICROSECONDS-FROM-EPOCH (YYYY-MM-DD HOURS:MINUTES:SECONDS TZ)
|
|
/*!80001 SET @@session.original_commit_timestamp= MICROSECONDS-FROM-EPOCH*//*!*/;
|
|
/*!80014 SET @@session.original_server_version= ORIGINAL_SERVER_VERSION*//*!*/;
|
|
/*!80014 SET @@session.immediate_server_version= IMMEDIATE_SERVER_VERSION*//*!*/;
|
|
SET @@SESSION.GTID_NEXT= '#'/*!*/;
|
|
SET TIMESTAMP=#/*!*/;
|
|
BEGIN
|
|
/*!*/;
|
|
SET @`var1`:=_utf8mb4 0x273B616161 COLLATE `utf8mb4_0900_ai_ci`/*!*/;
|
|
SET @`var2`:=_binary 0x61 COLLATE `binary`/*!*/;
|
|
SET TIMESTAMP=#/*!*/;
|
|
insert into t1 values (@var1),(@var2)
|
|
/*!*/;
|
|
COMMIT/*!*/;
|
|
SET @@SESSION.GTID_NEXT= '#' /* added by mysqlbinlog */ /*!*/;
|
|
DELIMITER ;
|
|
# End of log file
|
|
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
|
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
|
drop table t1;
|
|
|