2007-05-25 14:24:45 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
reset master;
|
|
|
|
create table t1 (a int);
|
|
|
|
prepare s from "insert into t1 values (@a),(?)";
|
|
|
|
set @a=98;
|
|
|
|
execute s using @a;
|
|
|
|
prepare s from "insert into t1 values (?)";
|
|
|
|
set @a=99;
|
|
|
|
execute s using @a;
|
|
|
|
prepare s from "insert into t1 select 100 limit ?";
|
|
|
|
set @a=100;
|
|
|
|
execute s using @a;
|
2008-03-25 14:28:12 +01:00
|
|
|
Warnings:
|
2009-05-20 12:28:43 +02:00
|
|
|
Note 1592 Statement may not be safe to log in statement format.
|
2007-05-25 14:24:45 +02:00
|
|
|
show binlog events from <binlog_start>;
|
|
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
|
|
master-bin.000001 # Query # # use `test`; create table t1 (a int)
|
|
|
|
master-bin.000001 # User var # # @`a`=98
|
|
|
|
master-bin.000001 # Query # # use `test`; insert into t1 values (@a),(98)
|
|
|
|
master-bin.000001 # Query # # use `test`; insert into t1 values (99)
|
2008-03-25 14:28:12 +01:00
|
|
|
master-bin.000001 # Query # # use `test`; insert into t1 select 100 limit 100
|
2007-05-25 14:24:45 +02:00
|
|
|
drop table t1;
|