mirror of
https://github.com/MariaDB/server.git
synced 2025-06-26 14:41:26 +02:00
24 lines
450 B
Text
24 lines
450 B
Text
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
--connection node_2
|
|
FLUSH TABLES t1 WITH READ LOCK;
|
|
|
|
--connection node_1
|
|
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
|
|
INSERT INTO t1 VALUES (2,3);
|
|
|
|
--sleep 2
|
|
|
|
--connection node_2
|
|
UNLOCK TABLES;
|
|
|
|
--echo ### t1 should have column f2
|
|
SHOW CREATE TABLE t1;
|
|
SELECT * from t1;
|
|
|
|
--connection node_1
|
|
DROP TABLE t1;
|