From 03c2ee0d640820d54d2fb60dc8083fd5f609f3e7 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Jan 2008 21:13:25 +0100 Subject: Check for windows patch to convert also in --replace --- client/mysqltest.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client/mysqltest.c') diff --git a/client/mysqltest.c b/client/mysqltest.c index 39675a168d9..628a4e639fd 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -7406,6 +7406,7 @@ void do_get_replace(struct st_command *command) if (!*from) die("Wrong number of arguments to replace_result in '%s'", command->query); + IF_WIN(fix_win_paths(to, from - to), 0); insert_pointer_name(&from_array,to); to= get_string(&buff, &from, command); insert_pointer_name(&to_array,to); @@ -8596,9 +8597,7 @@ void free_pointer_array(POINTER_ARRAY *pa) void replace_dynstr_append_mem(DYNAMIC_STRING *ds, const char *val, int len) { -#ifdef __WIN__ - fix_win_paths(val, len); -#endif + IF_WIN(fix_win_paths(val, len), 0); if (glob_replace_regex) { -- cgit v1.2.1