Adding upstream version 26.1.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
09521056ff
commit
d908bee480
119 changed files with 71635 additions and 68059 deletions
|
@ -888,3 +888,15 @@ class TestParser(unittest.TestCase):
|
|||
ast = parse_one("ALTER TABLE tbl DROP COLUMN col")
|
||||
self.assertEqual(len(list(ast.find_all(exp.Table))), 1)
|
||||
self.assertEqual(len(list(ast.find_all(exp.Column))), 1)
|
||||
|
||||
def test_udf_meta(self):
|
||||
ast = parse_one("YEAR(a) /* sqlglot.anonymous */")
|
||||
self.assertIsInstance(ast, exp.Anonymous)
|
||||
|
||||
# Meta flag is case sensitive
|
||||
ast = parse_one("YEAR(a) /* sqlglot.anONymous */")
|
||||
self.assertIsInstance(ast, exp.Year)
|
||||
|
||||
# Incomplete or incorrect anonymous meta comments are not registered
|
||||
ast = parse_one("YEAR(a) /* sqlglot.anon */")
|
||||
self.assertIsInstance(ast, exp.Year)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue