diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-10 09:23:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-10 09:23:46 +0000 |
commit | 5dde903f4f6659e384287a3e508b9f369c5a2ba3 (patch) | |
tree | 05cd2920d82f0023f6ac695dbb6eaeef64608401 /tests/test_expressions.py | |
parent | Adding upstream version 17.9.1. (diff) | |
download | sqlglot-5dde903f4f6659e384287a3e508b9f369c5a2ba3.tar.xz sqlglot-5dde903f4f6659e384287a3e508b9f369c5a2ba3.zip |
Adding upstream version 17.11.0.upstream/17.11.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r-- | tests/test_expressions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py index 1aab1c0..f68ced2 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -328,6 +328,10 @@ class TestExpressions(unittest.TestCase): cte = expression.find(exp.CTE) self.assertEqual(cte.alias_column_names, ["a", "b"]) + expression = parse_one("SELECT * FROM tbl AS tbl(a, b)") + table = expression.find(exp.Table) + self.assertEqual(table.alias_column_names, ["a", "b"]) + def test_ctes(self): expression = parse_one("SELECT a FROM x") self.assertEqual(expression.ctes, []) |