Additional fix about paths

sql/sql_class.cc:
  we need to check exchange->file_name here
This commit is contained in:
unknown 2004-09-13 21:49:41 +05:00
parent 9080b83818
commit c7431f4c26

View File

@ -891,7 +891,7 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange,
option|= MY_REPLACE_DIR; // Force use of db directory
#endif
if (!dirname_length(path))
if (!dirname_length(exchange->file_name))
{
strxnmov(path, FN_REFLEN, mysql_real_data_home, thd->db ? thd->db : "", NullS);
(void) fn_format(path, exchange->file_name, path, "", option);