diff options
| author | Andriy Sokolovskiy <me@asokolovskiy.com> | 2015-06-04 16:15:25 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-06 09:04:53 -0400 |
| commit | 2a7c59cd885b4c9f0584015c34c17c9ebca6d417 (patch) | |
| tree | ec951ac7fc2af0a4af7699cc711746f23bb1f76a /tests/postgres_tests/test_array.py | |
| parent | 08232ef84d4959826ad5136f183c9fc5bedf0599 (diff) | |
Added missing tests for transforms usage with subquery for PostgreSQL fields
Diffstat (limited to 'tests/postgres_tests/test_array.py')
| -rw-r--r-- | tests/postgres_tests/test_array.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index a893a95406..d152f76b3d 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -228,6 +228,14 @@ class TestQuerying(PostgreSQLTestCase): [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(PostgreSQLTestCase): |
