mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
USER(), DATABASE() and CHARSET() functions are now UCS2 compatible
Bug fix in ctype-utf8.c sql/item_strfunc.cc: USER(), DATABASE() and CHARSET() functions are now UCS2 compatible sql/item_strfunc.h: USER(), DATABASE() and CHARSET() functions are now UCS2 compatible sql/procedure.h: USER(), DATABASE() and CHARSET() functions are now UCS2 compatible strings/ctype-utf8.c: Bug fix
This commit is contained in:
@ -2383,7 +2383,7 @@ static int my_vsnprintf_ucs2(char *dst, uint n, const char* fmt, va_list ap)
|
||||
if (left_len <= plen*2)
|
||||
plen = left_len/2 - 1;
|
||||
|
||||
for ( ; plen ; plen--, dst++, par++)
|
||||
for ( ; plen ; plen--, dst+=2, par++)
|
||||
{
|
||||
dst[0]='\0';
|
||||
dst[1]=par[0];
|
||||
|
Reference in New Issue
Block a user