Commit 45712a9a authored by Jan Lindström's avatar Jan Lindström

MDEV-13871: galera.galera_unicode_identifiers failed in buildbot with 'Unknown database'

Wait in second node until tables with databases are created.
parent 82524239
......@@ -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`;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment