~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_func002.result

  • 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
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
DROP FUNCTION test.f1;
 
8
DROP TABLE IF EXISTS test.t1;
 
9
DROP TABLE IF EXISTS test.t2;
 
10
CREATE TABLE test.t1 (a INT NOT NULL AUTO_INCREMENT, t TIMESTAMP, t2 TIMESTAMP, PRIMARY KEY(a));
 
11
CREATE TABLE test.t2 (a INT NOT NULL AUTO_INCREMENT, t TIMESTAMP, t2 TIMESTAMP, PRIMARY KEY(a));
 
12
create function test.f1() RETURNS TIMESTAMP 
 
13
BEGIN
 
14
UPDATE test.t1 SET t  = CURRENT_TIMESTAMP;
 
15
RETURN CURRENT_TIMESTAMP;
 
16
END//
 
17
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
 
18
SET TIMESTAMP=2;
 
19
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
 
20
SET TIMESTAMP=1;
 
21
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
 
22
SET TIMESTAMP=333300000;
 
23
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
 
24
DROP FUNCTION test.f1;
 
25
DROP TABLE test.t1;
 
26
DROP TABLE test.t2;