Below is the list of changes that have just been committed into a local
5.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-08-09 10:21:28+02:00, msvensson@pilot.(none) +2 -0
Bug#29804 UDF parameters don't contain correct string length
- Fix warnings
- Export 'check_const_len' from udf_example.dll
sql/udf_example.c@stripped, 2007-08-09 10:21:26+02:00, msvensson@pilot.(none) +3 -3
Fix warnings
sql/udf_example.def@stripped, 2007-08-09 10:21:26+02:00, msvensson@pilot.(none) +1 -0
Add 'check_const_len' function to be exported from udf_example.dll
diff -Nrup a/sql/udf_example.c b/sql/udf_example.c
--- a/sql/udf_example.c 2007-08-06 03:37:51 +02:00
+++ b/sql/udf_example.c 2007-08-09 10:21:26 +02:00
@@ -1115,15 +1115,15 @@ my_bool check_const_len_init(UDF_INIT *i
}
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;
diff -Nrup a/sql/udf_example.def b/sql/udf_example.def
--- a/sql/udf_example.def 2007-02-23 12:23:42 +01:00
+++ b/sql/udf_example.def 2007-08-09 10:21:26 +02:00
@@ -23,3 +23,4 @@ EXPORTS
avgcost
is_const
is_const_init
+ check_const_len
| Thread |
|---|
| • bk commit into 5.1 tree (msvensson:1.2588) BUG#29804 | msvensson | 9 Aug |