summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <dkatz@damien-katzs-computer.local>2007-10-17 17:54:11 -0400
committerunknown <dkatz@damien-katzs-computer.local>2007-10-17 17:54:11 -0400
commit24cb2b3414ddbcc305ecdc632bd56314d1e68207 (patch)
tree081efbee271b95604a78e556a92985046d186533 /sql/sql_parse.cc
parent623e5187f73f5903bb1010e3957b4e832923cc9b (diff)
downloadmariadb-git-24cb2b3414ddbcc305ecdc632bd56314d1e68207.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 lengths of constants are correctly passed. sql/udf_example.def: Add new example functions to windows dll export list.
Diffstat (limited to 'sql/sql_parse.cc')
0 files changed, 0 insertions, 0 deletions