diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-30 04:54:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-30 04:54:49 +0000 |
commit | 3baf961bf84d7a67c838d6bc09cc5f0fe90a35b4 (patch) | |
tree | dc974c69ee45867df73e46342261aa658eb50392 /tests/test_expressions.py | |
parent | Releasing debian version 25.21.3-1. (diff) | |
download | sqlglot-3baf961bf84d7a67c838d6bc09cc5f0fe90a35b4.tar.xz sqlglot-3baf961bf84d7a67c838d6bc09cc5f0fe90a35b4.zip |
Merging upstream version 25.24.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 | 2 |
1 files changed, 2 insertions, 0 deletions
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) |