summaryrefslogtreecommitdiffstats
path: root/tests/test_expressions.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-12 10:06:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-12 10:06:28 +0000
commit918abde014f9e5c75dfbe21110c379f7f70435c9 (patch)
tree3419a01e34958bffbd917fa9e600eda126ea3a87 /tests/test_expressions.py
parentReleasing debian version 10.6.3-1. (diff)
downloadsqlglot-918abde014f9e5c75dfbe21110c379f7f70435c9.tar.xz
sqlglot-918abde014f9e5c75dfbe21110c379f7f70435c9.zip
Merging upstream version 11.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r--tests/test_expressions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py
index 55e07d1..7acc0fa 100644
--- a/tests/test_expressions.py
+++ b/tests/test_expressions.py
@@ -122,6 +122,10 @@ class TestExpressions(unittest.TestCase):
["first", "second", "third"],
)
+ self.assertEqual(parse_one("x.*").name, "*")
+ self.assertEqual(parse_one("NULL").name, "NULL")
+ self.assertEqual(parse_one("a.b.c").name, "c")
+
def test_table_name(self):
self.assertEqual(exp.table_name(parse_one("a", into=exp.Table)), "a")
self.assertEqual(exp.table_name(parse_one("a.b", into=exp.Table)), "a.b")