Commit e0288a6a authored by unknown's avatar unknown

Merge bk-internal:/home/bk/mysql-5.1-maint

into  pilot.(none):/data/msvensson/mysql/my51-bug29804

parents 3250963e 0f548014
...@@ -1115,15 +1115,15 @@ my_bool check_const_len_init(UDF_INIT *initid, UDF_ARGS *args, char *message) ...@@ -1115,15 +1115,15 @@ my_bool check_const_len_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
} }
if (args->args[0] == 0) if (args->args[0] == 0)
{ {
initid->ptr= "Not constant"; initid->ptr= (char*)"Not constant";
} }
else if(strlen(args->args[0]) == args->lengths[0]) else if(strlen(args->args[0]) == args->lengths[0])
{ {
initid->ptr= "Correct length"; initid->ptr= (char*)"Correct length";
} }
else else
{ {
initid->ptr= "Wrong length"; initid->ptr= (char*)"Wrong length";
} }
initid->max_length = 100; initid->max_length = 100;
return 0; return 0;
......
...@@ -23,3 +23,4 @@ EXPORTS ...@@ -23,3 +23,4 @@ EXPORTS
avgcost avgcost
is_const is_const
is_const_init is_const_init
check_const_len
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment