mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
BUG#32205 : Replaying statements from mysqlbinlog fails with a syntax error, replicates fine
This patch adds code to convert the path for LOAD DATA INFILE events to a Unix path which is needed for running mysql client on Windows. client/mysqlbinlog.cc: BUG#32205 : Replaying statements from mysqlbinlog fails with a syntax error, replicates fine This patch adds code to convert the path for LOAD DATA INFILE events to a Unix path which is needed for running mysql client on Windows. The 'd:\x\y\z' path becomes 'd:xyz' when run in the client.
This commit is contained in:
parent
818358ed33
commit
b0747b45c4
1 changed files with 7 additions and 0 deletions
|
@ -622,6 +622,13 @@ Create_file event for file_id: %u\n",exv->file_id);
|
|||
|
||||
if (fname)
|
||||
{
|
||||
/*
|
||||
Fix the path so it can be consumed by mysql client (requires Unix path).
|
||||
*/
|
||||
int stop= strlen(fname);
|
||||
for (int i= 0; i < stop; i++)
|
||||
if (fname[i] == '\\')
|
||||
fname[i]= '/';
|
||||
exlq->print(result_file, print_event_info, fname);
|
||||
my_free(fname, MYF(MY_WME));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue