diff options
| author | Tilman Koschnick <til@subnetz.org> | 2021-01-28 17:50:54 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-29 11:05:00 +0100 |
| commit | fdfbc66331292def201c9344e3cd29fbcbcd076a (patch) | |
| tree | 42e10a5a20c101ed7cb5eeb172090147356dfb2a /tests/postgres_tests/test_indexes.py | |
| parent | 135c800fe6138d7818501a384c0ebbdc5442762c (diff) | |
Fixed #32392 -- Fixed ExclusionConstraint crash with Cast() in expressions.
Diffstat (limited to 'tests/postgres_tests/test_indexes.py')
| -rw-r--r-- | tests/postgres_tests/test_indexes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/postgres_tests/test_indexes.py b/tests/postgres_tests/test_indexes.py index a212de2087..3578fb68f3 100644 --- a/tests/postgres_tests/test_indexes.py +++ b/tests/postgres_tests/test_indexes.py @@ -305,7 +305,7 @@ class SchemaTests(PostgreSQLTestCase): self.assertIn(index_name, constraints) self.assertIn(constraints[index_name]['type'], GinIndex.suffix) self.assertIs(sql.references_column(table, 'field'), True) - self.assertIn('::tsvector', str(sql)) + self.assertIn(' AS tsvector', str(sql)) with connection.schema_editor() as editor: editor.remove_index(TextFieldModel, index) self.assertNotIn(index_name, self.get_constraints(table)) |
