Commit bff3ed00 authored by hf@deer.(none)'s avatar hf@deer.(none)

Code cleanup

parent c0458bb3
...@@ -2422,9 +2422,8 @@ String *Item_load_file::val_str(String *str) ...@@ -2422,9 +2422,8 @@ String *Item_load_file::val_str(String *str)
) )
goto err; goto err;
(void) fn_format(path, file_name->c_ptr(), (void) fn_format(path, file_name->c_ptr(), mysql_real_data_home, "",
mysql_real_data_home, "", MY_RELATIVE_PATH); MY_RELATIVE_PATH | MY_UNPACK_FILENAME);
unpack_filename(path, path); /* Convert to system format */
if (!my_stat(path, &stat_info, MYF(MY_WME))) if (!my_stat(path, &stat_info, MYF(MY_WME)))
goto err; goto err;
......
...@@ -182,13 +182,13 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, ...@@ -182,13 +182,13 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
if (!dirname_length(ex->file_name)) if (!dirname_length(ex->file_name))
{ {
strxnmov(name, FN_REFLEN, mysql_real_data_home, tdb, NullS); strxnmov(name, FN_REFLEN, mysql_real_data_home, tdb, NullS);
(void) fn_format(name, ex->file_name, name, "", MY_RELATIVE_PATH); (void) fn_format(name, ex->file_name, name, "",
unpack_filename(name,name); MY_RELATIVE_PATH | MY_UNPACK_FILENAME);
} }
else else
{ {
(void) fn_format(name, ex->file_name, mysql_real_data_home, "", MY_RELATIVE_PATH); (void) fn_format(name, ex->file_name, mysql_real_data_home, "",
unpack_filename(name,name); MY_RELATIVE_PATH | MY_UNPACK_FILENAME);
#if !defined(__WIN__) && !defined(OS2) && ! defined(__NETWARE__) #if !defined(__WIN__) && !defined(OS2) && ! defined(__NETWARE__)
MY_STAT stat_info; MY_STAT stat_info;
if (!my_stat(name,&stat_info,MYF(MY_WME))) if (!my_stat(name,&stat_info,MYF(MY_WME)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment