summaryrefslogtreecommitdiff
path: root/client/mysqlbinlog.cc
diff options
context:
space:
mode:
authorunknown <cbell/Chuck@mysql_cab_desk.>2008-02-01 13:11:03 -0500
committerunknown <cbell/Chuck@mysql_cab_desk.>2008-02-01 13:11:03 -0500
commitb0747b45c46ee08ba5e31487bb422b6733271fe2 (patch)
tree510364061adce0e3e789c3fddc76af660eb70399 /client/mysqlbinlog.cc
parent818358ed3397d021257b18ac2b1108bff500ccfc (diff)
downloadmariadb-git-b0747b45c46ee08ba5e31487bb422b6733271fe2.tar.gz
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.
Diffstat (limited to 'client/mysqlbinlog.cc')
-rw-r--r--client/mysqlbinlog.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 3d06a21c243..0553240894e 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -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));
}