diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-24 18:46:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-24 18:46:57 +0000 |
commit | caf48491ccffa709546a473d36df6a4444164ad1 (patch) | |
tree | e803e4a815a9a39695e6161ec4feb55f295f4942 /tests/test_executor.py | |
parent | Releasing debian version 16.4.0-1. (diff) | |
download | sqlglot-caf48491ccffa709546a473d36df6a4444164ad1.tar.xz sqlglot-caf48491ccffa709546a473d36df6a4444164ad1.zip |
Merging upstream version 16.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_executor.py')
-rw-r--r-- | tests/test_executor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_executor.py b/tests/test_executor.py index bb01dee..3a37cd4 100644 --- a/tests/test_executor.py +++ b/tests/test_executor.py @@ -580,6 +580,7 @@ class TestExecutor(unittest.TestCase): ("INTERVAL '1' week", datetime.timedelta(weeks=1)), ("1 IN (1, 2, 3)", True), ("1 IN (2, 3)", False), + ("1 IN (1)", True), ("NULL IS NULL", True), ("NULL IS NOT NULL", False), ("NULL = NULL", None), @@ -612,6 +613,8 @@ class TestExecutor(unittest.TestCase): ("STRFTIME('%j', NULL)", None), ("DATESTRTODATE('2022-01-01')", date(2022, 1, 1)), ("TIMESTRTOTIME('2022-01-01')", datetime.datetime(2022, 1, 1)), + ("LEFT('12345', 3)", "123"), + ("RIGHT('12345', 3)", "345"), ]: with self.subTest(sql): result = execute(f"SELECT {sql}") |