Bug #32007 | select udf_function() doesn't return an error if error during udf initialization | ||
---|---|---|---|
Submitted: | 31 Oct 2007 21:20 | Modified: | 9 Nov 2007 0:14 |
Reporter: | Konstantin Osipov (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[31 Oct 2007 21:20]
Konstantin Osipov
[31 Oct 2007 21:32]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/36807 ChangeSet@1.2608, 2007-11-01 00:31:57+03:00, kostja@bodhi.(none) +3 -0 A fix for Bug#32007 select udf_function() doesn't return an error if error during udf initialization. The bug is spotted while working on Bug 12713. If a user-defined function was used in a SELECT statement, and an error would occur during UDF initialization, this error would not terminate execution of the SELECT, but rather would be converted to a warning. The fix is to use a stack buffer to store the message from udf_init instead of private my_error() buffer.
[31 Oct 2007 21:40]
Konstantin Osipov
Approved on IRC.
[7 Nov 2007 21:59]
Bugs System
Pushed into 6.0.4-alpha
[7 Nov 2007 22:00]
Bugs System
Pushed into 5.1.23-rc
[9 Nov 2007 0:14]
Paul DuBois
Noted in 5.1.23, 6.0.4 changelogs.