mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
BUG# 10687 - MERGE engine fails under Windows
This patch was submitted by Ingo and it appears to work correctly. sql/ha_myisammrg.cc: use FN_LIBCHAR instead of / so buff works correctly on Windows strings/my_vsnprintf.c: add support for %c to my_vsnprintf
This commit is contained in:
@ -28,7 +28,8 @@
|
||||
%#[l]u
|
||||
%#[l]x
|
||||
%#.#s Note first # is ignored
|
||||
|
||||
%c
|
||||
|
||||
RETURN
|
||||
length of result string
|
||||
*/
|
||||
@ -120,6 +121,11 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
|
||||
to+= res_length;
|
||||
continue;
|
||||
}
|
||||
else if (*fmt == 'c')
|
||||
{
|
||||
*(to++)= (char) va_arg(ap, int);
|
||||
continue;
|
||||
}
|
||||
/* We come here on '%%', unknown code or too long parameter */
|
||||
if (to == end)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user