|
5 | 5 |
|
6 | 6 |
|
7 | 7 | class DatabaseFeatures(PostgresDatabaseFeatures): |
8 | | - minimum_database_version = (23, 1) |
| 8 | + minimum_database_version = (23, 2) |
9 | 9 |
|
10 | 10 | # Cloning databases doesn't speed up tests. |
11 | 11 | # https://github.com/cockroachdb/django-cockroachdb/issues/206 |
@@ -75,10 +75,6 @@ def introspected_field_types(self): |
75 | 75 | 'virtual': None, |
76 | 76 | } |
77 | 77 |
|
78 | | - @cached_property |
79 | | - def is_cockroachdb_23_2(self): |
80 | | - return self.connection.cockroachdb_version >= (23, 2) |
81 | | - |
82 | 78 | @cached_property |
83 | 79 | def is_cockroachdb_24_1(self): |
84 | 80 | return self.connection.cockroachdb_version >= (24, 1) |
@@ -201,28 +197,6 @@ def django_test_expected_failures(self): |
201 | 197 | # concat(): unknown signature: concat(string, int2) (desired <string>) |
202 | 198 | 'db_functions.text.test_concat.ConcatTests.test_concat_non_str', |
203 | 199 | }) |
204 | | - if not self.is_cockroachdb_23_2: |
205 | | - expected_failures.update({ |
206 | | - # cannot index a json element: |
207 | | - # https://github.com/cockroachdb/cockroach/issues/35706 |
208 | | - 'schema.tests.SchemaTests.test_func_index_json_key_transform', |
209 | | - # ordering by JSON isn't supported: |
210 | | - # https://github.com/cockroachdb/cockroach/issues/35706 |
211 | | - 'db_functions.comparison.test_json_object.JSONObjectTests.test_order_by_key', |
212 | | - 'db_functions.comparison.test_json_object.JSONObjectTests.test_order_by_nested_key', |
213 | | - 'expressions_window.tests.WindowFunctionTests.test_key_transform', |
214 | | - 'model_fields.test_jsonfield.TestQuerying.test_deep_distinct', |
215 | | - 'model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder', |
216 | | - 'model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform', |
217 | | - 'model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform', |
218 | | - # unsupported comparison operator: <jsonb> > <string>: |
219 | | - # https://github.com/cockroachdb/cockroach/issues/49144 |
220 | | - 'model_fields.test_jsonfield.TestQuerying.test_deep_lookup_transform', |
221 | | - # DataError: incompatible COALESCE expressions: expected pi() to be |
222 | | - # of type decimal, found type float |
223 | | - # https://github.com/cockroachdb/cockroach/issues/73587#issuecomment-988408190 |
224 | | - 'aggregation.tests.AggregateTestCase.test_aggregation_default_using_decimal_from_database', |
225 | | - }) |
226 | 200 | if self.is_cockroachdb_24_1: |
227 | 201 | # USING cast required: https://github.com/cockroachdb/cockroach/issues/82416#issuecomment-2029803229 |
228 | 202 | expected_failures.update({ |
|
0 commit comments