diff options
| author | JaeHyuck Sa <wogur981208@gmail.com> | 2026-01-15 08:12:48 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-16 09:15:53 -0500 |
| commit | 211b63142786ea77953de4f2850961e259c5b335 (patch) | |
| tree | 78e0f090b5be3077215eebdff6c6597fd39e7fb3 /tests/backends/postgresql/test_features.py | |
| parent | b98075dc6205374746cf1ad6d3533b9a1d9cf22e (diff) | |
Fixed #36822 -- Added parameter limit for PostgreSQL with server-side binding.
Diffstat (limited to 'tests/backends/postgresql/test_features.py')
| -rw-r--r-- | tests/backends/postgresql/test_features.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/backends/postgresql/test_features.py b/tests/backends/postgresql/test_features.py new file mode 100644 index 0000000000..c63f26a7bb --- /dev/null +++ b/tests/backends/postgresql/test_features.py @@ -0,0 +1,14 @@ +import unittest + +from django.db import connection +from django.test import TestCase + + +@unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL tests") +class FeaturesTests(TestCase): + def test_max_query_params_respects_server_side_params(self): + if connection.features.uses_server_side_binding: + limit = 2**16 - 1 + else: + limit = None + self.assertEqual(connection.features.max_query_params, limit) |
