mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
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.
This commit is contained in:
parent
11d32b4af3
commit
bffb5d0048
4 changed files with 9 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue