diff options
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_array.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index b8ae48c5bc..1fc54defe7 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -118,6 +118,13 @@ class TestQuerying(TestCase): self.objs[1:3] ) + def test_contains_charfield(self): + # Regression for #22907 + self.assertSequenceEqual( + CharArrayModel.objects.filter(field__contains=['text']), + [] + ) + def test_index(self): self.assertSequenceEqual( NullableIntegerArrayModel.objects.filter(field__0=2), |
