[MDEV-21196] Odd parsing error upon wrong partitioning expression Created: 2019-12-02 Updated: 2020-06-09 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Parser, Partitioning |
| Affects Version/s: | 5.5, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.5 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Elena Stepanova | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
The text is odd, since it's neither constant, nor random, nor timezone-dependent expression. It is not very important though, the statement would fail anyway, since partitioning by CHAR is not supported. |
| Comments |
| Comment by Alexander Barkov [ 2020-06-01 ] |
|
The parser considers the `c(4)`part of the above statement as a stored function call. What would you suggest? Should we add an additional error message for such cases? Thanks. |
| Comment by Elena Stepanova [ 2020-06-01 ] |
|
Maybe just potentially rethink the text of this one. From the current message, I frankly didn't even guess that it was interpreting it as a function call. |