mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-13871: galera.galera_unicode_identifiers failed in buildbot with 'Unknown database'
Wait in second node until tables with databases are created.
This commit is contained in:
parent
82524239c4
commit
45712a9a1f
2 changed files with 12 additions and 6 deletions
|
@ -6,7 +6,7 @@ CREATE TABLE `table with space` (
|
|||
`column with space` INTEGER AUTO_INCREMENT PRIMARY KEY,
|
||||
`second column with space` INTEGER,
|
||||
UNIQUE `index name with space` (`second column with space`)
|
||||
);
|
||||
) engine=innodb;
|
||||
INSERT INTO `table with space` VALUES (1, 1);
|
||||
CREATE DATABASE `база`;
|
||||
USE `база`;
|
||||
|
@ -14,7 +14,7 @@ CREATE TABLE `таблица` (
|
|||
`първа_колона` INTEGER PRIMARY KEY,
|
||||
`втора_колона` INTEGER,
|
||||
UNIQUE `индекс` (`втора_колона`)
|
||||
);
|
||||
) engine=innodb;
|
||||
INSERT INTO `таблица` VALUES (1, 1);
|
||||
CREATE DATABASE `втора база`;
|
||||
USE `втора база`;
|
||||
|
@ -22,7 +22,7 @@ CREATE TABLE `втора таблица` (
|
|||
`първа колона` INTEGER,
|
||||
`втора колона` INTEGER,
|
||||
KEY `първи индекс` (`първа колона`)
|
||||
);
|
||||
) engine=innodb;
|
||||
INSERT INTO `втора таблица` VALUES (1, 1);
|
||||
USE `database with space`;
|
||||
SELECT `second column with space` FROM `table with space`;
|
||||
|
|
|
@ -13,6 +13,8 @@ SET GLOBAL wsrep_sync_wait = 15;
|
|||
|
||||
--connection node_1
|
||||
|
||||
--let $innodb_num_tables_orig = `SELECT COUNT(*) FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES`
|
||||
|
||||
# Spaces in identifiers
|
||||
|
||||
CREATE DATABASE `database with space`;
|
||||
|
@ -21,7 +23,7 @@ CREATE TABLE `table with space` (
|
|||
`column with space` INTEGER AUTO_INCREMENT PRIMARY KEY,
|
||||
`second column with space` INTEGER,
|
||||
UNIQUE `index name with space` (`second column with space`)
|
||||
);
|
||||
) engine=innodb;
|
||||
INSERT INTO `table with space` VALUES (1, 1);
|
||||
|
||||
# Unicode identifiers
|
||||
|
@ -32,7 +34,7 @@ CREATE TABLE `таблица` (
|
|||
`първа_колона` INTEGER PRIMARY KEY,
|
||||
`втора_колона` INTEGER,
|
||||
UNIQUE `индекс` (`втора_колона`)
|
||||
);
|
||||
) engine=innodb;
|
||||
|
||||
INSERT INTO `таблица` VALUES (1, 1);
|
||||
|
||||
|
@ -44,11 +46,15 @@ CREATE TABLE `втора таблица` (
|
|||
`първа колона` INTEGER,
|
||||
`втора колона` INTEGER,
|
||||
KEY `първи индекс` (`първа колона`)
|
||||
);
|
||||
) engine=innodb;
|
||||
|
||||
INSERT INTO `втора таблица` VALUES (1, 1);
|
||||
|
||||
--connection node_2
|
||||
# Wait until 3 above tables with databases are created also to this node
|
||||
--let $wait_condition = SELECT COUNT(*) = $innodb_num_tables_orig + 3 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES;
|
||||
--source include/wait_condition.inc
|
||||
|
||||
USE `database with space`;
|
||||
SELECT `second column with space` FROM `table with space`;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue