mariadb/mysql-test/r/rpl_ndb_sp007.result
unknown 545ac7f323 test updates
mysql-test/t/rpl_trigger.test:
  Test cleanup
mysql-test/t/rpl_ndb_sync.test:
  Test cleanup
mysql-test/t/rpl_ndb_idempotent.test:
  Test cleanup
mysql-test/r/rpl_trigger.result:
  Updated result files
mysql-test/r/rpl_ndb_sync.result:
  Updated result files
mysql-test/r/rpl_ndb_idempotent.result:
  Updated result files
mysql-test/t/rpl_ndb_dd_basic.test:
  Rename: mysql-test/t/rpl_ndb_disk.test -> mysql-test/t/rpl_ndb_dd_basic.test
mysql-test/r/rpl_ndb_dd_basic.result:
  Rename: mysql-test/t/rpl_ndb_dd_basic.result -> mysql-test/r/rpl_ndb_dd_basic.result
mysql-test/r/rpl_ndb_sp006.result:
  New results file
mysql-test/t/rpl_row_sp007_innodb-slave.opt:
  Ensure slave tables are created as innodb
mysql-test/t/disabled.def:
  updated 17290
mysql-test/r/rpl_ndb_sp007.result:
  New results file
mysql-test/t/rpl_ndb_sp007.test:
  Added comment
mysql-test/t/rpl_ndb_sp006.test:
  Added comment
mysql-test/extra/rpl_tests/rpl_row_sp003.test:
  Augmented for use with NDB due to injector thread not populating the bin log before sync with master is done
mysql-test/r/rpl_ndb_sp003.result:
  New results file
mysql-test/t/rpl_ndb_sp003.test:
  Wrapper to use same code for testing NDB that is used for InnoDB Currently
2006-02-10 12:52:35 +01:00

50 lines
1,017 B
Text

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 PROCEDURE IF EXISTS test.p1;
DROP TABLE IF EXISTS test.t1;
CREATE PROCEDURE test.p1(IN i INT)
BEGIN
DECLARE CONTINUE HANDLER FOR sqlexception BEGIN END;
DROP TABLE IF EXISTS test.t1;
CREATE TABLE test.t1 (num INT,PRIMARY KEY(num))ENGINE=NDBCLUSTER;
START TRANSACTION;
INSERT INTO test.t1 VALUES(i);
savepoint t1_save;
INSERT INTO test.t1 VALUES (14);
ROLLBACK to savepoint t1_save;
COMMIT;
END|
< ---- Master selects-- >
-------------------------
CALL test.p1(12);
Warnings:
Note 1051 Unknown table 't1'
SELECT * FROM test.t1;
num
12
< ---- Slave selects-- >
------------------------
SELECT * FROM test.t1;
num
12
< ---- Master selects-- >
-------------------------
CALL test.p1(13);
SELECT * FROM test.t1;
num
13
< ---- Slave selects-- >
------------------------
SELECT * FROM test.t1;
num
13
DROP PROCEDURE IF EXISTS test.p1;
DROP TABLE IF EXISTS test.t1;