~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_row_func001.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#############################################################################
 
2
# This test is being created to test out the non deterministic items with   #
 
3
# row based replication.                                                    #
 
4
# Original Author: JBM                                                      #
 
5
# Original Date: Aug/10/2005                                                #
 
6
# Update: 08/29/2005 change name to initails                                #
 
7
#############################################################################
 
8
 
 
9
# Includes
 
10
-- source include/have_binlog_format_row.inc
 
11
-- source include/master-slave.inc
 
12
 
 
13
 
 
14
# Begin clean up test section
 
15
connection master;
 
16
--disable_warnings
 
17
--error 0,1305
 
18
DROP FUNCTION test.f1;
 
19
DROP TABLE IF EXISTS test.t1;
 
20
 
 
21
 
 
22
--enable_warnings
 
23
 
 
24
# Section 1 test from bug #12487 Uses stored function to insert rows to see what is replicated.
 
25
 
 
26
create table test.t1 (a int, PRIMARY KEY(a));
 
27
 
 
28
delimiter //;
 
29
create function test.f1(i int) returns int
 
30
begin
 
31
insert into test.t1 values(i);
 
32
return 0;
 
33
end//
 
34
delimiter ;//
 
35
 
 
36
select test.f1(1);
 
37
select test.f1(2);
 
38
select * from test.t1;
 
39
 
 
40
save_master_pos;
 
41
sync_slave_with_master;
 
42
connection slave;
 
43
#show create table test.t1;
 
44
select * from test.t1;
 
45
 
 
46
connection master;
 
47
 
 
48
#Used for debugging
 
49
#show binlog events;
 
50
 
 
51
# Cleanup
 
52
 
 
53
DROP FUNCTION test.f1;
 
54
DROP TABLE test.t1;
 
55
sync_slave_with_master;
 
56
 
 
57
# End of 5.0 test case