| 1 |
--source include/have_multi_ndb.inc |
| 2 |
|
| 3 |
# |
| 4 |
# Bug#30192373 MYSQLD CRASH IN BINLOG SETUP DUE TO LCTN IN MAC |
| 5 |
# This bug was specific to Mac machines where lower_case_table_names |
| 6 |
# is 2 by default. Required metadata locks were previously |
| 7 |
# acquired using the wrong case which eventually resulted in a |
| 8 |
# debug assert failing down the line owing to missing MDL on |
| 9 |
# the correct (lower case key) objects |
| 10 |
# |
| 11 |
|
| 12 |
# Create a database with upper case name |
| 13 |
CREATE DATABASE DB1; |
| 14 |
ALTER DATABASE DB1 |
| 15 |
CHARACTER SET latin1; |
| 16 |
USE DB1; |
| 17 |
CREATE TABLE t1( |
| 18 |
id INT PRIMARY KEY |
| 19 |
) ENGINE NDB; |
| 20 |
|
| 21 |
# Trigger schema synchronization by restarting the MySQL server |
| 22 |
--connection server1 |
| 23 |
let $mysqld_name=mysqld.1.1; |
| 24 |
--source include/restart_mysqld.inc |
| 25 |
|
| 26 |
# Check if the database and table exist |
| 27 |
# Case of the database name differs according to platform |
| 28 |
--replace_result db1 DB1 |
| 29 |
SHOW DATABASES; |
| 30 |
USE DB1; |
| 31 |
--replace_result Tables_in_db1 Tables_in_DB1 |
| 32 |
SHOW TABLES; |
| 33 |
SHOW CREATE TABLE t1; |
| 34 |
|
| 35 |
# Clean up |
| 36 |
DROP DATABASE DB1; |