• davi@mysql.com/endora.local's avatar
    Bug#22312 Syntax error in expression with INTERVAL() · ee9bafc1
    davi@mysql.com/endora.local authored
    Parser rejects valid INTERVAL() expressions when associated with
    arithmetic operators. The problem is the way in which the expression
    and interval grammar rules were organized caused shift/reduce conflicts.
    
    The solution is to tweak the interval rules to avoid shift/reduce
    conflicts by removing the broken interval_expr rule and explicitly
    specify it's content where necessary.
    
    Original fix by Davi Arnaut, revised and improved rules by Marc Alff
    ee9bafc1
parser.test 16 KB