diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-12 10:17:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-12 10:17:12 +0000 |
commit | e53bec16fb5ba08b2ff8daf3ffe5467a7c24b757 (patch) | |
tree | c13a841e8033707ca74d492bac3ebfc5bd9dd393 /tests/test_expressions.py | |
parent | Adding upstream version 11.3.3. (diff) | |
download | sqlglot-e53bec16fb5ba08b2ff8daf3ffe5467a7c24b757.tar.xz sqlglot-e53bec16fb5ba08b2ff8daf3ffe5467a7c24b757.zip |
Adding upstream version 11.3.6.upstream/11.3.6
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 caa419e..ecbdc24 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -199,6 +199,8 @@ class TestExpressions(unittest.TestCase): ) def test_function_building(self): + self.assertEqual(exp.func("max", 1).sql(), "MAX(1)") + self.assertEqual(exp.func("max", 1, 2).sql(), "MAX(1, 2)") self.assertEqual(exp.func("bla", 1, "foo").sql(), "BLA(1, 'foo')") self.assertEqual(exp.func("COUNT", exp.Star()).sql(), "COUNT(*)") self.assertEqual(exp.func("bloo").sql(), "BLOO()") |