[MDEV-8228] Move Item_func_like out of Item_bool_func2 Created: 2015-05-26 Updated: 2016-01-11 Resolved: 2015-06-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Fix Version/s: | 10.0.6 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | refactoring, unused-code | ||
| Description |
|
Item_func_like is erroneously inherited from Item_bool_func2.
Wrong inheritance needs excessive casts and functype() calls and potentially more buggy. See Derive Item_func_like directly from Item_bool_func. Another option would be to move Arg_comparator from Item_bool_func2 to Item_bool_rowready_func2. |
| Comments |
| Comment by Alexander Barkov [ 2015-06-18 ] |
|
It turned out that the goal of this task was reached by a few of earlier 10.1 patches, using the second alternative.
Now Item_func_like does not have unused members. No other coding is needed. |