From 3baf961bf84d7a67c838d6bc09cc5f0fe90a35b4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 30 Sep 2024 06:54:49 +0200 Subject: Merging upstream version 25.24.0. Signed-off-by: Daniel Baumann --- tests/test_expressions.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_expressions.py') diff --git a/tests/test_expressions.py b/tests/test_expressions.py index 8e2ac45..e88740b 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -674,6 +674,8 @@ class TestExpressions(unittest.TestCase): self.assertIsInstance(parse_one("STR_POSITION(a, 'test')"), exp.StrPosition) self.assertIsInstance(parse_one("STR_TO_UNIX(a, 'format')"), exp.StrToUnix) self.assertIsInstance(parse_one("STRUCT_EXTRACT(a, 'test')"), exp.StructExtract) + self.assertIsInstance(parse_one("SUBSTR('a', 1, 1)"), exp.Substring) + self.assertIsInstance(parse_one("SUBSTRING('a', 1, 1)"), exp.Substring) self.assertIsInstance(parse_one("SUM(a)"), exp.Sum) self.assertIsInstance(parse_one("SQRT(a)"), exp.Sqrt) self.assertIsInstance(parse_one("STDDEV(a)"), exp.Stddev) -- cgit v1.2.3