2005-03-30 03:17:46 +02:00
|
|
|
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);
|
2007-03-30 04:44:49 +02:00
|
|
|
show binlog events from <binlog_start>;
|
2005-04-05 01:34:24 +02:00
|
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
2007-03-30 04:44:49 +02:00
|
|
|
master-bin.000001 # User var # # @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
|
|
|
|
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES(@`a b`)
|
|
|
|
master-bin.000001 # User var # # @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
|
|
|
|
master-bin.000001 # User var # # @`var2`=_binary 0x61 COLLATE binary
|
|
|
|
master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)
|
2006-12-14 11:05:25 +01:00
|
|
|
flush logs;
|
2005-03-30 03:17:46 +02:00
|
|
|
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
2005-04-05 01:34:24 +02:00
|
|
|
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
2006-11-28 13:26:15 +01:00
|
|
|
DELIMITER /*!*/;
|
|
|
|
ROLLBACK/*!*/;
|
|
|
|
SET @`a b`:=_latin1 0x68656C6C6F COLLATE `latin1_swedish_ci`/*!*/;
|
|
|
|
use test/*!*/;
|
|
|
|
SET TIMESTAMP=10000/*!*/;
|
2008-03-07 13:59:36 +01:00
|
|
|
SET @@session.pseudo_thread_id=999999999/*!*/;
|
2008-04-02 11:49:22 +02:00
|
|
|
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
|
2006-11-28 13:26:15 +01:00
|
|
|
SET @@session.sql_mode=0/*!*/;
|
2008-03-07 13:59:36 +01:00
|
|
|
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
2006-11-28 13:26:15 +01:00
|
|
|
/*!\C latin1 *//*!*/;
|
|
|
|
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
|
2008-03-07 13:59:36 +01:00
|
|
|
SET @@session.lc_time_names=0/*!*/;
|
|
|
|
SET @@session.collation_database=DEFAULT/*!*/;
|
2007-12-17 14:13:25 +01:00
|
|
|
INSERT INTO t1 VALUES(@`a b`)
|
|
|
|
/*!*/;
|
2006-11-28 13:26:15 +01:00
|
|
|
SET @`var1`:=_latin1 0x273B616161 COLLATE `latin1_swedish_ci`/*!*/;
|
|
|
|
SET @`var2`:=_binary 0x61 COLLATE `binary`/*!*/;
|
|
|
|
SET TIMESTAMP=10000/*!*/;
|
2007-12-17 14:13:25 +01:00
|
|
|
insert into t1 values (@var1),(@var2)
|
|
|
|
/*!*/;
|
2006-11-28 13:26:15 +01:00
|
|
|
DELIMITER ;
|
2005-09-21 14:27:41 +02:00
|
|
|
# End of log file
|
2005-09-30 10:58:24 +02:00
|
|
|
ROLLBACK /* added by mysqlbinlog */;
|
2005-04-05 01:34:24 +02:00
|
|
|
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
2005-03-30 03:17:46 +02:00
|
|
|
drop table t1;
|