summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorreggie@bob.(none) <>2005-01-31 17:24:18 -0600
committerreggie@bob.(none) <>2005-01-31 17:24:18 -0600
commit16334eb414ca3cbc698253e18a682010573e25af (patch)
tree85f79bd28cad72f69f3e92d2761a2cd49cb06839 /sql/sql_table.cc
parent18084f54c7062b7851b97beba5d800c13904f670 (diff)
downloadmariadb-git-16334eb414ca3cbc698253e18a682010573e25af.tar.gz
Bug #6607 Create table... LIKE... with Windows Symlinks
sql_table.cc: use fn_format to resolve symlinks in mysql_create_like_table
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 423a309767b..f3c107c2696 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -2272,8 +2272,7 @@ int mysql_create_like_table(THD* thd, TABLE_LIST* table,
strxmov(src_path, (*tmp_table)->path, reg_ext, NullS);
else
{
- strxmov(src_path, mysql_data_home, "/", src_db, "/", src_table,
- reg_ext, NullS);
+ fn_format( src_path, src_table, src_db, reg_ext, MYF(MY_UNPACK_FILENAME));
if (access(src_path, F_OK))
{
my_error(ER_BAD_TABLE_ERROR, MYF(0), src_table);
@@ -2300,8 +2299,7 @@ int mysql_create_like_table(THD* thd, TABLE_LIST* table,
}
else
{
- strxmov(dst_path, mysql_data_home, "/", db, "/", table_name,
- reg_ext, NullS);
+ fn_format( dst_path, table_name, db, reg_ext, MYF(MY_UNPACK_FILENAME));
if (!access(dst_path, F_OK))
goto table_exists;
}