summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index 35a3bffd58..0dffbaf0a2 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -223,6 +223,14 @@ class TestQuerying(TestCase):
[instance]
)
+ def test_usage_in_subquery(self):
+ self.assertSequenceEqual(
+ NullableIntegerArrayModel.objects.filter(
+ id__in=NullableIntegerArrayModel.objects.filter(field__len=3)
+ ),
+ [self.objs[3]]
+ )
+
class TestChecks(TestCase):