mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Test updates
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
# TEST: Use after insert and before inset triggers and stored procdures to #
|
||||
# Update and insert data #
|
||||
#############################################################################
|
||||
|
||||
# Change Auth: JBM #
|
||||
# Date: 2006-02-14 #
|
||||
# Change: Added error, sleep and comments (ndb) #
|
||||
####################################################
|
||||
|
||||
# Begin clean up test section
|
||||
connection master;
|
||||
@@ -25,12 +28,16 @@ CREATE TRIGGER test.t1_bi_t2 BEFORE INSERT ON test.t2 FOR EACH ROW INSERT INTO t
|
||||
delimiter ;//
|
||||
|
||||
INSERT INTO test.t2 VALUES (1, 0.0);
|
||||
--error 0,1062
|
||||
# Expect duplicate error 1022 == ndb
|
||||
--error 1022,1062
|
||||
INSERT INTO test.t2 VALUES (1, 0.0);
|
||||
|
||||
#show binlog events;
|
||||
select * from test.t1;
|
||||
select * from test.t2;
|
||||
# Have to sleep for a few seconds to allow
|
||||
# NDB injector thread to populate binlog
|
||||
sleep 10;
|
||||
sync_slave_with_master;
|
||||
connection slave;
|
||||
select * from test.t1;
|
||||
|
||||
Reference in New Issue
Block a user