diff options
author | unknown <dkatz@damien-katzs-computer.local> | 2007-09-05 15:06:10 -0400 |
---|---|---|
committer | unknown <dkatz@damien-katzs-computer.local> | 2007-09-05 15:06:10 -0400 |
commit | 0a28cac0b627a0a4990c8cb942ade39261fb1007 (patch) | |
tree | 40d64f8c92a6bd938bafcb55e01986312ad4a73c /server-tools | |
parent | 3e7b724c69b26d976d91312d4264d4c42deccde5 (diff) | |
download | mariadb-git-0a28cac0b627a0a4990c8cb942ade39261fb1007.tar.gz |
Bug #29804 UDF parameters don't contain correct string length
Previously, UDF *_init functions were passed constant strings with erroneous lengths.
The length came from the containing variable's size, not the length of the value itself.
Now the *_init functions get the constant as a null terminated string with the correct
length supplied too.
mysql-test/r/udf.result:
Test case to check constants passed UDFs.
mysql-test/t/udf.test:
Test case to check constants passed UDFs.
sql/item_func.cc:
UDF _init functions are now passed the length of the constants, rather than the max
length of the var containing the constant.
sql/udf_example.c:
Added check_const_len functions. The check_const_len_init functions checks that the
lengths of constants are correctly passed.
sql/udf_example.def:
Add new example functions to windows dll export list.
Diffstat (limited to 'server-tools')
0 files changed, 0 insertions, 0 deletions