mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
WL#3933 Split main test suite to rpl, rpl_ndb and ndb
- Update mysql-test-run.pl to collect tests from several suites - Group test into suites - Add suite.opt file
This commit is contained in:
26
mysql-test/suite/rpl/r/rpl_row_func002.result
Normal file
26
mysql-test/suite/rpl/r/rpl_row_func002.result
Normal file
@@ -0,0 +1,26 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
DROP FUNCTION test.f1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
DROP TABLE IF EXISTS test.t2;
|
||||
CREATE TABLE test.t1 (a INT NOT NULL AUTO_INCREMENT, t TIMESTAMP, t2 TIMESTAMP, PRIMARY KEY(a));
|
||||
CREATE TABLE test.t2 (a INT NOT NULL AUTO_INCREMENT, t TIMESTAMP, t2 TIMESTAMP, PRIMARY KEY(a));
|
||||
create function test.f1() RETURNS TIMESTAMP
|
||||
BEGIN
|
||||
UPDATE test.t1 SET t = CURRENT_TIMESTAMP;
|
||||
RETURN CURRENT_TIMESTAMP;
|
||||
END//
|
||||
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
|
||||
SET TIMESTAMP=2;
|
||||
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
|
||||
SET TIMESTAMP=1;
|
||||
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
|
||||
SET TIMESTAMP=333300000;
|
||||
INSERT INTO test.t2 VALUES (null,f1(),CURRENT_TIMESTAMP);
|
||||
DROP FUNCTION test.f1;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE test.t2;
|
||||
Reference in New Issue
Block a user