Adding upstream version 26.25.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
bc7749846c
commit
d9e621c994
83 changed files with 67317 additions and 67680 deletions
|
@ -957,7 +957,7 @@ class TestParser(unittest.TestCase):
|
|||
ast = parse_one("YEAR(a) /* sqlglot.anon */")
|
||||
self.assertIsInstance(ast, exp.Year)
|
||||
|
||||
def test_identifier_meta(self):
|
||||
def test_token_position_meta(self):
|
||||
ast = parse_one(
|
||||
"SELECT a, b FROM test_schema.test_table_a UNION ALL SELECT c, d FROM test_catalog.test_schema.test_table_b"
|
||||
)
|
||||
|
@ -988,6 +988,12 @@ class TestParser(unittest.TestCase):
|
|||
ast = parse_one("SELECT FOO()")
|
||||
self.assertEqual(ast.find(exp.Anonymous).meta, {"line": 1, "col": 10, "start": 7, "end": 9})
|
||||
|
||||
ast = parse_one("SELECT * FROM t")
|
||||
self.assertEqual(ast.find(exp.Star).meta, {"line": 1, "col": 8, "start": 7, "end": 7})
|
||||
|
||||
ast = parse_one("SELECT t.* FROM t")
|
||||
self.assertEqual(ast.find(exp.Star).meta, {"line": 1, "col": 10, "start": 9, "end": 9})
|
||||
|
||||
def test_quoted_identifier_meta(self):
|
||||
sql = 'SELECT "a" FROM "test_schema"."test_table_a"'
|
||||
ast = parse_one(sql)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue