Skip to content

Commit

Permalink
Merge pull request #409 from mindsdb/fix-modulo
Browse files Browse the repository at this point in the history
Fix modulo precedence
  • Loading branch information
ea-rus authored Oct 30, 2024
2 parents 7bdddfa + 0796d8e commit fd1ae98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindsdb_sql/parser/dialects/mindsdb/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MindsDBParser(Parser):
('nonassoc', LESS, LEQ, GREATER, GEQ, IN, NOT_IN, BETWEEN, IS, IS_NOT, NOT_LIKE, LIKE),
('left', JSON_GET),
('left', PLUS, MINUS),
('left', STAR, DIVIDE, TYPECAST),
('left', STAR, DIVIDE, TYPECAST, MODULO),
('right', UMINUS), # Unary minus operator, unary not

)
Expand Down

0 comments on commit fd1ae98

Please sign in to comment.