~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/t/binlog_stm_ps.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This test is to verify replication with PS
 
2
 
 
3
-- source include/not_embedded.inc
 
4
-- source include/have_binlog_format_statement.inc
 
5
 
 
6
-- disable_query_log
 
7
reset master; # get rid of previous tests binlog
 
8
-- enable_query_log
 
9
 
 
10
--disable_warnings
 
11
drop table if exists t1;
 
12
--enable_warnings
 
13
reset master;
 
14
 
 
15
#
 
16
# Bug #26842: master binary log contains invalid queries - replication fails
 
17
#
 
18
create table t1 (a int); 
 
19
prepare s from "insert into t1 values (@a),(?)";
 
20
set @a=98; execute s using @a;
 
21
prepare s from "insert into t1 values (?)";
 
22
set @a=99; execute s using @a;
 
23
prepare s from "insert into t1 select 100 limit ?";
 
24
set @a=100; execute s using @a;
 
25
source include/show_binlog_events.inc;
 
26
drop table t1;