tree-sitter-sql icon indicating copy to clipboard operation
tree-sitter-sql copied to clipboard

SQL syntax highlighting for tree-sitter

Results 41 tree-sitter-sql issues
Sort by recently updated
recently updated
newest added

``` SELECT a.n, a.m, b.y, b.z FROM ( SELECT m, n FROM table1 WHERE col1 = 'value1' ) a JOIN ( SELECT x, y, z FROM table2 WHERE col1 =...

Error when parsing the following SQL: ``` SELECT a, b FROM foo WHERE a > $1::INTEGER GROUP BY b; ``` Error: ``` source_file [0, 0] - [4, 0]) select_statement [0,...

I have added some new rules to the grammar.js based on the SQLs of TPC-DS and TPC-H benchmark, including like expression, between expression, exists expression, time literals and set operaors.

Error when parsing the following SQL: ``` select * from "users" where "id" = 5 LIMIT 5; ``` Error: ``` source_file [0, 0] - [1, 0]) select_statement [0, 0] -...

Error when parsing the following SQL: ``` BEGIN TRANSACTION; UNLOAD (' SELECT tl.apartment_id AS apartment_id, tl.clicks AS delta_clicks FROM ranking_team.rl_impressions_to_learn_enriched tl ') TO '{{ params.s3_bucket }}' IAM_ROLE '{{ params.iam_role }}'...

Commit `98d9b300c0`, with the log message `Merge branch 'improve-from-clause'`, removed the file `src/parser.c` from the repository. This causes the command `treesit-install-language-grammar` available in Emacs 29 and later to fail to...

Would it be possible to get an updated [crate](https://crates.io/crates/tree-sitter-sql)?

The test corpus has [this example](https://github.com/m-novikov/tree-sitter-sql/blob/main/test/corpus/delete.txt). But I got an error when parsing the following SQL: ``` DELETE FROM foo; DELETE FROM foo WHERE name = 'bar'; ``` Error: ```...

Error when parsing the following SQL: ``` VALUES(1); ``` Error: ``` source_file [0, 0] - [1, 0]) ERROR [0, 0] - [0, 10]) ```