From bffb5d0048cb1541926c02c31868817e0d32d198 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Aug 2005 22:19:15 +0400 Subject: Fixes bug #11815. Convert file path to UNIX format to build correct query string while replicating LOAD DATA INFILE statement. VC++Files/mysys/mysys.dsp: added mf_unixpath.c into mysys.dsp include/my_sys.h: Added an option for fn_format function to convert path from system representation to UNIX format. mysys/mf_format.c: Added an option for fn_format function to convert path from system representation to UNIX format. sql/log_event.cc: Convert file path to UNIX format to build correct query string while replicating LOAD DATA INFILE statement. --- mysys/mf_format.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mysys/mf_format.c') 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 */ -- cgit v1.2.1