1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Fix 'CREATE TABLE ... LIKE ...' when lower_case_table_names

is set on case-sensitive file systems and the source table
was specified in something other than lowercase. (Bug #9761)
This commit is contained in:
jimw@mysql.com
2005-04-28 15:30:42 -07:00
parent 6f95cf02ab
commit 8ef6ae7442
3 changed files with 13 additions and 0 deletions

View File

@@ -2281,6 +2281,8 @@ int mysql_create_like_table(THD* thd, TABLE_LIST* table,
reg_ext, NullS);
/* Resolve symlinks (for windows) */
fn_format(src_path, src_path, "", "", MYF(MY_UNPACK_FILENAME));
if (lower_case_table_names)
my_casedn_str(files_charset_info, src_path);
if (access(src_path, F_OK))
{
my_error(ER_BAD_TABLE_ERROR, MYF(0), src_table);