mariadb/mysql-test/suite/galera/t/galera_sync_wait_show.test

71 lines
1.2 KiB
Text
Raw Normal View History

#
# Test that the various SHOW commands obey wsrep_sync_wait - codership/mysql-wsrep#228
#
--source include/galera_cluster.inc
2016-02-23 20:33:21 -05:00
--source include/have_innodb.inc
2016-03-02 09:19:36 -05:00
--source include/have_debug.inc
--connection node_2
SET SESSION wsrep_sync_wait = 1;
--connection node_1
CREATE DATABASE db1;
--connection node_2
SHOW CREATE DATABASE db1;
DROP DATABASE db1;
--connection node_1
CREATE PROCEDURE p1 () SELECT 1 FROM DUAL;
--connection node_2
SHOW CREATE PROCEDURE p1;
DROP PROCEDURE p1;
--connection node_1
CREATE PROCEDURE p1 () SELECT 1 FROM DUAL;
--connection node_2
SHOW PROCEDURE CODE p1;
DROP PROCEDURE p1;
--connection node_1
CREATE FUNCTION f1 () RETURNS INTEGER RETURN 123;
--connection node_2
SHOW CREATE FUNCTION f1;
DROP FUNCTION f1;
--connection node_1
CREATE FUNCTION f1 () RETURNS INTEGER RETURN 123;
--connection node_2
SHOW FUNCTION CODE f1;
DROP FUNCTION f1;
--connection node_1
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.f1 = 'a';
--connection node_2
2016-11-01 17:37:20 -04:00
--replace_column 7 #
SHOW CREATE TRIGGER tr1;
DROP TABLE t1;
--connection node_1
CREATE EVENT event1 ON SCHEDULE AT '2038-01-01 23:59:59' DO SELECT 1;
--connection node_2
SHOW CREATE EVENT event1;
DROP EVENT event1;