mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fix for the bug #537 (UDF example broken on 4.1).
This commit is contained in:
@@ -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 */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user