mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation.
Previously, backends used different keys "swedish-ci" or "swedish_ci".
This commit is contained in:
committed by
Mariusz Felisiak
parent
f3901b5899
commit
278b6187d2
@@ -306,7 +306,7 @@ class BaseDatabaseFeatures:
|
||||
test_collations = {
|
||||
'ci': None, # Case-insensitive.
|
||||
'cs': None, # Case-sensitive.
|
||||
'swedish-ci': None # Swedish case-insensitive.
|
||||
'swedish_ci': None # Swedish case-insensitive.
|
||||
}
|
||||
|
||||
def __init__(self, connection):
|
||||
|
||||
@@ -46,7 +46,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
order_by_nulls_first = True
|
||||
test_collations = {
|
||||
'ci': 'utf8_general_ci',
|
||||
'swedish-ci': 'utf8_swedish_ci',
|
||||
'swedish_ci': 'utf8_swedish_ci',
|
||||
}
|
||||
|
||||
@cached_property
|
||||
|
||||
@@ -59,7 +59,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
has_json_operators = True
|
||||
json_key_contains_list_matching_requires_list = True
|
||||
test_collations = {
|
||||
'swedish-ci': 'sv-x-icu',
|
||||
'swedish_ci': 'sv-x-icu',
|
||||
}
|
||||
|
||||
@cached_property
|
||||
|
||||
Reference in New Issue
Block a user