Fix for the bug #537 (UDF example broken on 4.1).

This commit is contained in:
ram@mysql.r18.ru 2003-05-30 13:03:00 +05:00
parent 0b1dda4023
commit 0b979c0b9a

View File

@ -284,8 +284,8 @@ char *metaphon(UDF_INIT *initid, UDF_ARGS *args, char *result,
for (n = ntrans + 1, n_end = ntrans + sizeof(ntrans)-2;
word != w_end && n < n_end; word++ )
if ( my_isalpha ( my_charset_latin1, *word ))
*n++ = my_toupper ( my_charset_latin1, *word );
if ( my_isalpha ( &my_charset_latin1, *word ))
*n++ = my_toupper ( &my_charset_latin1, *word );
if ( n == ntrans + 1 ) /* return empty string if 0 bytes */
{