DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
149 stars 47 forks source link

Operator precedence mismatch between sql database #212

Open antoineB opened 10 months ago

antoineB commented 10 months ago

The operator precedence is not the same between sqlite, mariadb and postgres. I just wanted to point it out, I am not sure that operator precedence as any use in the scope of this parser (used in code editor).

https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-PRECEDENCE https://github.com/sqlite/sqlite/blob/master/src/parse.y#L280 https://mariadb.com/kb/en/operator-precedence/

I am not sure the actual operator precedence is the same as one of the big three.