[MDEV-24346] valgrind error in main.precedence Created: 2020-12-04 Updated: 2020-12-21 Resolved: 2020-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.37, 10.3.28, 10.4.18, 10.5.9 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
LIKE ... ESCAPE xxx expects xxx to be a constant expression. In certain cases subqueries pretend to be constant but not have a value at fix_fields(). In these cases the value of escape stays not initialized. |
| Comments |
| Comment by Oleksandr Byelkin [ 2020-12-16 ] |
|
I'd prohibit "is_exepensive" constant in escape. Because it is against our ususal practice and can be dangerows. otherwise it is OK. |
| Comment by Sergei Golubchik [ 2020-12-16 ] |
|
tested with RQG, found a couple of issues (all fixed). No problems with is_expensive. I'll add a comment about it, though, as discussed on slack |