-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-28802 DROP DATABASE in InnoDB still is case-insensitive
innodb_drop_database(): Use explicit TO_BINARY casts on SYS_TABLES.NAME, which for historical reasons uses the wrong collation latin1_swedish_ci instead of BINARY.
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# MDEV-28802 DROP DATABASE in InnoDB still is case-insensitive | ||
# | ||
SET @save_fpt=@@GLOBAL.innodb_file_per_table; | ||
SET GLOBAL innodb_file_per_table=0; | ||
CREATE DATABASE Db; | ||
CREATE TABLE Db.t1 (c1 INT KEY) ENGINE=InnoDB; | ||
CREATE DATABASE DB; | ||
DROP DATABASE DB; | ||
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'D%'; | ||
NAME | ||
Db/t1 | ||
DROP DATABASE Db; | ||
SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'D%'; | ||
TABLE_ID NAME FLAG N_COLS SPACE ROW_FORMAT ZIP_PAGE_SIZE SPACE_TYPE | ||
SET GLOBAL innodb_file_per_table=@save_fpt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--source include/have_innodb.inc | ||
--source include/have_case_sensitive_file_system.inc | ||
|
||
--echo # | ||
--echo # MDEV-28802 DROP DATABASE in InnoDB still is case-insensitive | ||
--echo # | ||
|
||
SET @save_fpt=@@GLOBAL.innodb_file_per_table; | ||
SET GLOBAL innodb_file_per_table=0; | ||
CREATE DATABASE Db; | ||
CREATE TABLE Db.t1 (c1 INT KEY) ENGINE=InnoDB; | ||
CREATE DATABASE DB; | ||
DROP DATABASE DB; | ||
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'D%'; | ||
DROP DATABASE Db; | ||
SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'D%'; | ||
SET GLOBAL innodb_file_per_table=@save_fpt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters