| Bug #109335 | Inconsistent UDF behavior with respect to `max_length` | ||
|---|---|---|---|
| Submitted: | 12 Dec 2022 1:17 | Modified: | 12 Dec 2022 7:32 |
| Reporter: | Trevor Gross | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: User-defined functions ( UDF ) | Severity: | S3 (Non-critical) |
| Version: | 8.0, 8.0.31, 5.7.40 | OS: | Linux (mysql:8.0-debian) |
| Assigned to: | CPU Architecture: | Any | |
[12 Dec 2022 1:17]
Trevor Gross
[12 Dec 2022 2:29]
Trevor Gross
It seems like the buffer is actually a longer length - I can disregard the initial length, write the buffer, and get the correct result. So it's just erroneously reporting zero length when that doesn't seem to be true. I think just none of the examples check the provided length in their `xxx` function (metaphon or is_const) so it's easy to miss
[12 Dec 2022 7:32]
MySQL Verification Team
Hello Trevor, Thank you for the report and feedback. regards, Umesh
