Fix for bug#2972 Problem the the CONV() function

This commit is contained in:
gluh@gluh.mysql.r18.ru 2004-03-15 19:18:30 +04:00
commit 9f22beb242
3 changed files with 18 additions and 8 deletions

View file

@ -262,9 +262,9 @@ long my_strntol_8bit(CHARSET_INFO *cs,
{
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='F')
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='f')
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
@ -384,9 +384,9 @@ ulong my_strntoul_8bit(CHARSET_INFO *cs,
{
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='F')
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='f')
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
@ -499,9 +499,9 @@ longlong my_strntoll_8bit(CHARSET_INFO *cs __attribute__((unused)),
{
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='F')
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='f')
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
@ -622,9 +622,9 @@ ulonglong my_strntoull_8bit(CHARSET_INFO *cs,
{
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='F')
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='f')
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;