[MDEV-11105] Table named 'db' has weird side effect. Created: 2016-10-22  Updated: 2016-10-27  Resolved: 2016-10-26

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.0.27
Fix Version/s: 10.0.28

Type: Bug Priority: Major
Reporter: Alexey Botchkov Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-10846 Running mysqldump backup twice return... Closed
Sprint: 10.0.28

 Description   

DROP DATABASE fails if there is a table with the name 'db' there.

MariaDB [(none)]> CREATE DATABASE exp_db;
Query OK, 1 row affected (0.04 sec)
 
MariaDB [(none)]> CREATE TABLE exp_db.db(id int);
Query OK, 0 rows affected (1.55 sec)
 
MariaDB [(none)]> DROP DATABASE exp_db;
ERROR 1010 (HY000): Error dropping database (can't rmdir './exp_db', errno: 39 "Directory not empty")


Generated at Thu Feb 08 07:47:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.