mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
5a7374d71b
- Don't log connection creation in galera_connect.inc
36 lines
914 B
Text
36 lines
914 B
Text
CREATE TABLE t1 (f1 CHAR(5)) ENGINE=InnoDB;
|
|
CREATE TABLE t2 (f1 CHAR(5)) ENGINE=InnoDB;
|
|
CREATE TABLE t3 (f1 CHAR(5)) ENGINE=InnoDB;
|
|
CREATE TABLE t4 (f1 CHAR(5)) ENGINE=InnoDB;
|
|
SET SESSION sql_mode='STRICT_ALL_TABLES';
|
|
PREPARE st1 FROM 'INSERT INTO t1 VALUES ("abc")';
|
|
PREPARE st2 FROM 'INSERT INTO t2 VALUES ("abc")';
|
|
PREPARE st3 FROM 'INSERT INTO t3 VALUES ("abc")';
|
|
PREPARE st4 FROM 'INSERT INTO t4 VALUES ("abc")';
|
|
EXECUTE st1;
|
|
EXECUTE st2;
|
|
EXECUTE st3;
|
|
EXECUTE st4;
|
|
connection node_2;
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
COUNT(*) = 1
|
|
1
|
|
SELECT COUNT(*) = 1 FROM t2;
|
|
COUNT(*) = 1
|
|
1
|
|
SELECT COUNT(*) = 1 FROM t3;
|
|
COUNT(*) = 1
|
|
1
|
|
SELECT COUNT(*) = 1 FROM t4;
|
|
COUNT(*) = 1
|
|
1
|
|
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
|
|
ALTER TABLE t1 DROP COLUMN f1;
|
|
connection node_1;
|
|
EXECUTE st1;
|
|
ERROR 22007: Incorrect integer value: 'abc' for column 'f2' at row 1
|
|
connection node_1;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
DROP TABLE t3;
|
|
DROP TABLE t4;
|