File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11__title__ = 'mindsdb_sql_parser'
22__package_name__ = 'mindsdb_sql_parser'
3- __version__ = '0.4.0 '
3+ __version__ = '0.4.1 '
44__description__ = "Mindsdb SQL parser"
5566__author__ = 'MindsDB Inc'
Original file line number Diff line number Diff line change @@ -280,8 +280,8 @@ class MindsDBLexer(Lexer):
280280 VECT_HAMM = r'<~>'
281281 VECT_JACC = r'<%>'
282282
283- JSON_GET = r'->'
284283 JSON_GET_STR = r'->>'
284+ JSON_GET = r'->'
285285 PLUS = r'\+'
286286 MINUS = r'-'
287287 MATCH = r'~'
Original file line number Diff line number Diff line change @@ -166,12 +166,12 @@ def test_last(self):
166166 assert str (ast ) == str (expected_ast )
167167
168168 def test_json (self ):
169- sql = """SELECT col->1->'c' from TAB1"""
169+ sql = """SELECT col->1->> 'c' from TAB1"""
170170
171171 ast = parse_sql (sql )
172172 expected_ast = Select (
173173 targets = [BinaryOperation (
174- op = '->' ,
174+ op = '->> ' ,
175175 args = [
176176 BinaryOperation (
177177 op = '->' ,
You can’t perform that action at this time.
0 commit comments