summaryrefslogtreecommitdiffstats
path: root/tests/test_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 74463fd..53e1a85 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -690,6 +690,31 @@ class TestParser(unittest.TestCase):
LEFT JOIN b ON a.id = b.id
"""
)
+
+ self.assertIsNotNone(query)
+
+ query = parse_one(
+ """
+ SELECT *
+ FROM a
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ LEFT JOIN UNNEST(ARRAY[])
+ """
+ )
+
self.assertIsNotNone(query)
self.assertLessEqual(time.time() - now, 0.2)