~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
drop table if exists t1;
2
reset master;
3
create table t1 (a int);
4
prepare s from "insert into t1 values (@a),(?)";
5
set @a=98;
6
execute s using @a;
7
prepare s from "insert into t1 values (?)";
8
set @a=99;
9
execute s using @a;
10
prepare s from "insert into t1 select 100 limit ?";
11
set @a=100;
12
execute s using @a;
13
Warnings:
14
Warning	1592	Statement is not safe to log in statement format.
15
show binlog events from <binlog_start>;
16
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
17
master-bin.000001	#	Query	#	#	use `test`; create table t1 (a int)
18
master-bin.000001	#	User var	#	#	@`a`=98
19
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values (@a),(98)
20
master-bin.000001	#	Query	#	#	use `test`; insert into t1 values (99)
21
master-bin.000001	#	Query	#	#	use `test`; insert into t1 select 100 limit 100
22
drop table t1;