diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-12-05 00:21:28 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2023-01-02 00:04:03 +0100 |
commit | eba099184e1f6704894694ea41f97f216eae5f21 (patch) | |
tree | 0c445eea7d8c518d05d2f3496dcf2f58d487aa27 /.gitmodules | |
parent | f8adc47b698ef8d347fd36bffff90b237491eceb (diff) | |
download | mariadb-git-eba099184e1f6704894694ea41f97f216eae5f21.tar.gz |
MDEV-30151 parse error 1=2 not between/in
the parser couldn't parse `1=2 not between 3 and 5`
after `2` it expected only NOT2_SYM, but not NOT_SYM
(visible from the sql_yacc.output file), which resulted in
Syntax error ... near 'not between 3 and 4'
The parser was confused by a rather low NOT_SYM precedence and
%prec BETWEEN_SYM didn't resolve this confusion.
As a fix, let's remove any %precedence from NOT_SYM and
specify %prec explicitly in the only place where it matters for NOT_SYM.
In other places, such as for NOT BETWEEN, NOT_SYM won't have a
precedence, so bison won't be confused about it.
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions