diff options
author | SergeyV@selena. <> | 2005-08-30 22:19:15 +0400 |
---|---|---|
committer | SergeyV@selena. <> | 2005-08-30 22:19:15 +0400 |
commit | 3fdd500288358b391853a3ec2cb5aaf117fadf22 (patch) | |
tree | ac311a4aecc39e29d6e0f0a5597766f91d550488 /mysys/mf_format.c | |
parent | c019e40ff0b05bc7233fbfbd4a8ce37a4673664b (diff) | |
download | mariadb-git-3fdd500288358b391853a3ec2cb5aaf117fadf22.tar.gz |
Fixes bug #11815. Convert file path to UNIX format to build correct query
string while replicating LOAD DATA INFILE statement.
Diffstat (limited to 'mysys/mf_format.c')
-rw-r--r-- | mysys/mf_format.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/mf_format.c b/mysys/mf_format.c index d1ca1108d02..0fec9d27b1d 100644 --- a/mysys/mf_format.c +++ b/mysys/mf_format.c @@ -54,6 +54,8 @@ my_string fn_format(my_string to, const char *name, const char *dir, pack_dirname(dev,dev); /* Put in ./.. and ~/.. */ if (flag & MY_UNPACK_FILENAME) (void) unpack_dirname(dev,dev); /* Replace ~/.. with dir */ + if (flag & MY_UNIX_PATH) + to_unix_path(dev); /* Fix to MySQL representation */ if ((pos= (char*) strchr(name,FN_EXTCHAR)) != NullS) { if ((flag & MY_REPLACE_EXT) == 0) /* If we should keep old ext */ |