~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_NOW.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
create database if not exists mysqltest1;
 
8
DROP TABLE IF EXISTS mysqltest1.t1;
 
9
CREATE TABLE mysqltest1.t1 (n MEDIUMINT NOT NULL AUTO_INCREMENT,
 
10
a TIMESTAMP DEFAULT '2005-05-05 01:01:01',
 
11
b TIMESTAMP DEFAULT '2005-05-05 01:01:01',
 
12
PRIMARY KEY(n));
 
13
CREATE FUNCTION mysqltest1.f1() RETURNS TIMESTAMP
 
14
BEGIN
 
15
DECLARE v1 INT DEFAULT 300;
 
16
WHILE v1 > 0 DO
 
17
SET v1 = v1 - 1;
 
18
END WHILE;  
 
19
RETURN NOW();
 
20
END|
 
21
INSERT INTO mysqltest1.t1 VALUES(NULL,NOW(),mysqltest1.f1());
 
22
CREATE TRIGGER mysqltest1.trig1 BEFORE INSERT ON mysqltest1.t1
 
23
FOR EACH ROW BEGIN
 
24
SET new.b = mysqltest1.f1();
 
25
END|
 
26
INSERT INTO mysqltest1.t1 SET n = NULL, a = now();
 
27
DROP TABLE IF EXISTS mysqltest1.t1;
 
28
DROP FUNCTION mysqltest1.f1;
 
29
DROP DATABASE mysqltest1;