diff options
author | unknown <hf@deer.(none)> | 2004-09-13 21:49:41 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-09-13 21:49:41 +0500 |
commit | c7431f4c262182e980911ed6acb5de05ec9698fa (patch) | |
tree | 74c2a88c8f8d528231e3e1a5103dc3b62a646fc8 /sql/sql_class.cc | |
parent | 9080b83818629b3f8d6981043c7de6c9b0bcbe2b (diff) | |
download | mariadb-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.cc | 2 |
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); |