summaryrefslogtreecommitdiff
path: root/sql/udf_example.cc
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-05-30 13:03:00 +0500
committerunknown <ram@mysql.r18.ru>2003-05-30 13:03:00 +0500
commitf8ed5e71292246c91824dad4c32eb00c7513f9a0 (patch)
tree5a5da605f26b3f37c74bc500b1dc96bd3418b46b /sql/udf_example.cc
parentf440077bd03869f48ff278bc2b73fab7a30e282b (diff)
downloadmariadb-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.cc4
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 */
{