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

Error parsing SQL - BETWEEN not supported

Open bitner opened this issue 9 months ago • 0 comments

Error when parsing the following SQL:

SELECT a, b
FROM foo
WHERE a between 1 and 3

Error:

source_file [0, 0] - [3, 0])
  select_statement [0, 0] - [2, 23])
    select_clause [0, 0] - [0, 11])
      select_clause_body [0, 7] - [0, 11])
        identifier [0, 7] - [0, 8])
        identifier [0, 10] - [0, 11])
    from_clause [1, 0] - [1, 8])
      identifier [1, 5] - [1, 8])
    where_clause [2, 0] - [2, 23])
      boolean_expression [2, 6] - [2, 23])
        identifier [2, 6] - [2, 7])
        ERROR [2, 8] - [2, 17])
          ERROR [2, 8] - [2, 15])
        number [2, 22] - [2, 23])

bitner avatar Mar 18 '25 17:03 bitner