mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
8b02e02b27
If temporary internal table is in use `hton` will not be set. Skip check if DDL should be replicated in this case. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
25 lines
635 B
Text
25 lines
635 B
Text
#
|
|
# Test for different wsrep_mode values
|
|
#
|
|
|
|
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
# REQUIRED_PRIMARY_KEY
|
|
SET GLOBAL wsrep_mode = REQUIRED_PRIMARY_KEY;
|
|
--error ER_GALERA_REPLICATION_NOT_SUPPORTED
|
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|
SHOW WARNINGS;
|
|
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
|
|
DROP TABLE t1;
|
|
SET GLOBAL wsrep_mode = default;
|
|
|
|
|
|
# MDEV-25698 SIGSEGV in wsrep_should_replicate_ddl
|
|
|
|
SET GLOBAL wsrep_mode = STRICT_REPLICATION;
|
|
CREATE VIEW v AS SELECT * FROM JSON_TABLE ('{"a":0}',"$" COLUMNS (a DECIMAL(1,1) path '$.a')) foo;
|
|
DROP VIEW v;
|
|
SET GLOBAL wsrep_mode = default;
|