diff options
author | unknown <ram@mysql.r18.ru> | 2003-05-30 13:03:00 +0500 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2003-05-30 13:03:00 +0500 |
commit | f8ed5e71292246c91824dad4c32eb00c7513f9a0 (patch) | |
tree | 5a5da605f26b3f37c74bc500b1dc96bd3418b46b /sql/udf_example.cc | |
parent | f440077bd03869f48ff278bc2b73fab7a30e282b (diff) | |
download | mariadb-git-f8ed5e71292246c91824dad4c32eb00c7513f9a0.tar.gz |
Fix for the bug #537 (UDF example broken on 4.1).
Diffstat (limited to 'sql/udf_example.cc')
-rw-r--r-- | sql/udf_example.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/udf_example.cc b/sql/udf_example.cc index dfe8177bfce..7f4417bf8fe 100644 --- a/sql/udf_example.cc +++ b/sql/udf_example.cc @@ -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 */ { |