Bug #68421 xxx_init and xxx_deinit functions marked as optional
Submitted: 18 Feb 2013 21:41 Modified: 4 Apr 2013 14:00
Reporter: Roland Bouman Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.6.10 OS:Any
Assigned to: Paul DuBois CPU Architecture:Any

[18 Feb 2013 21:41] Roland Bouman
Description:
In http://dev.mysql.com/doc/refman/5.6/en/adding-udf.html it reads:

"xxx_init() (optional)"

and

"xxx_deinit"

Those functions being "optional" is not entirely true. That is, it won't work out of the box if neither is present. The exact behavior is documented here:

http://dev.mysql.com/doc/refman/5.6/en/udf-security.html

but it couldn't hurt to add a note or something like that to explain what "optional" means here.

How to repeat:
read http://dev.mysql.com/doc/refman/5.6/en/adding-udf.html

Suggested fix:
please explain that optional doesn't mean you can simply leave those functions out.
[19 Feb 2013 17:07] Sveta Smirnova
Thank you for the report.

Verified as described.
[27 Feb 2013 16:45] Jon Stephens
This is C API stuff that I'm not very familiar with--asking Paul to take over on this one.
[4 Apr 2013 14:00] Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.