summaryrefslogtreecommitdiffstats
path: root/tests/test_expressions.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-12 10:17:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-12 10:17:16 +0000
commit7457677bc603569692329e39a59ccb018306e2a6 (patch)
treebb16c8f909bfbf7ff272cd8ef14a413c47b203fe /tests/test_expressions.py
parentReleasing debian version 11.3.3-1. (diff)
downloadsqlglot-7457677bc603569692329e39a59ccb018306e2a6.tar.xz
sqlglot-7457677bc603569692329e39a59ccb018306e2a6.zip
Merging upstream version 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.py2
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()")