1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Bug#29804 UDF parameters don't contain correct string length

- Fix warnings
 - Export 'check_const_len' from udf_example.dll


sql/udf_example.c:
  Fix warnings
sql/udf_example.def:
  Add 'check_const_len' function to be exported from udf_example.dll
This commit is contained in:
unknown
2007-08-09 10:21:28 +02:00
parent ccb32a5946
commit 0f54801412
2 changed files with 4 additions and 3 deletions

View File

@ -1115,15 +1115,15 @@ my_bool check_const_len_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
}
if (args->args[0] == 0)
{
initid->ptr= "Not constant";
initid->ptr= (char*)"Not constant";
}
else if(strlen(args->args[0]) == args->lengths[0])
{
initid->ptr= "Correct length";
initid->ptr= (char*)"Correct length";
}
else
{
initid->ptr= "Wrong length";
initid->ptr= (char*)"Wrong length";
}
initid->max_length = 100;
return 0;