summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-09-13 21:49:41 +0500
committerunknown <hf@deer.(none)>2004-09-13 21:49:41 +0500
commitc7431f4c262182e980911ed6acb5de05ec9698fa (patch)
tree74c2a88c8f8d528231e3e1a5103dc3b62a646fc8 /sql/sql_class.cc
parent9080b83818629b3f8d6981043c7de6c9b0bcbe2b (diff)
downloadmariadb-git-c7431f4c262182e980911ed6acb5de05ec9698fa.tar.gz
Additional fix about paths
sql/sql_class.cc: we need to check exchange->file_name here
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 69a543d9863..844903f0edc 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -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);