mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
21 lines
570 B
Text
21 lines
570 B
Text
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) Engine=InnoDB;
|
|
SET SESSION wsrep_OSU_method = "RSU";
|
|
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
|
|
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1';
|
|
COUNT(*) = 2
|
|
1
|
|
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1';
|
|
COUNT(*) = 1
|
|
1
|
|
INSERT INTO t1 VALUES (1);
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
COUNT(*) = 1
|
|
1
|
|
INSERT INTO t1 (f1) VALUES (2);
|
|
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1';
|
|
COUNT(*) = 1
|
|
1
|
|
SELECT COUNT(*) = 2 FROM t1;
|
|
COUNT(*) = 2
|
|
1
|
|
DROP TABLE t1;
|