Bug #33581 | misplaced break statement in switch...case in bool udf_handler::get_arguments() | ||
---|---|---|---|
Submitted: | 29 Dec 2007 11:15 | Modified: | 29 Dec 2007 15:45 |
Reporter: | Roland Bouman | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: User-defined functions ( UDF ) | Severity: | S3 (Non-critical) |
Version: | 5.1.23bk | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[29 Dec 2007 11:15]
Roland Bouman
[29 Dec 2007 15:45]
Hartmut Holzgraefe
I think it is wrongly placed, too. I also fail to understand why the various branches call the ->val_*() methods *before* checking null_value although the val_*() results are *only* used within the "if (!null_value)" branches ...
[4 Jan 2008 16:20]
Roland Bouman
Lars! thanks for verifying. I think that the call to val occurs before the null check because the val check has the side effect of setting the null attribute. (but maybe I'm wrong - not that into C yet)