Fixed #33228 -- Changed value of BaseDatabaseFeatures.has_case_insensitive_like to False.

This commit is contained in:
Chinmoy 2021-10-28 21:26:29 +05:30 committed by GitHub
parent 8e3b1cf098
commit 073b7b5915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 5 deletions

View File

@ -201,7 +201,7 @@ class BaseDatabaseFeatures:
closed_cursor_error_class = ProgrammingError closed_cursor_error_class = ProgrammingError
# Does 'a' LIKE 'A' match? # Does 'a' LIKE 'A' match?
has_case_insensitive_like = True has_case_insensitive_like = False
# Suffix for backends that don't support "SELECT xxx;" queries. # Suffix for backends that don't support "SELECT xxx;" queries.
bare_select_suffix = '' bare_select_suffix = ''

View File

@ -24,7 +24,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_select_difference = False supports_select_difference = False
supports_slicing_ordering_in_compound = True supports_slicing_ordering_in_compound = True
supports_index_on_text_field = False supports_index_on_text_field = False
has_case_insensitive_like = False
create_test_procedure_without_params_sql = """ create_test_procedure_without_params_sql = """
CREATE PROCEDURE test_procedure () CREATE PROCEDURE test_procedure ()
BEGIN BEGIN

View File

@ -39,7 +39,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
# does by uppercasing all identifiers. # does by uppercasing all identifiers.
ignores_table_name_case = True ignores_table_name_case = True
supports_index_on_text_field = False supports_index_on_text_field = False
has_case_insensitive_like = False
create_test_procedure_without_params_sql = """ create_test_procedure_without_params_sql = """
CREATE PROCEDURE "TEST_PROCEDURE" AS CREATE PROCEDURE "TEST_PROCEDURE" AS
V_I INTEGER; V_I INTEGER;

View File

@ -28,7 +28,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_combined_alters = True supports_combined_alters = True
nulls_order_largest = True nulls_order_largest = True
closed_cursor_error_class = InterfaceError closed_cursor_error_class = InterfaceError
has_case_insensitive_like = False
greatest_least_ignores_nulls = True greatest_least_ignores_nulls = True
can_clone_databases = True can_clone_databases = True
supports_temporal_subtraction = True supports_temporal_subtraction = True

View File

@ -30,6 +30,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_cast_with_precision = False supports_cast_with_precision = False
time_cast_precision = 3 time_cast_precision = 3
can_release_savepoints = True can_release_savepoints = True
has_case_insensitive_like = True
# Is "ALTER TABLE ... RENAME COLUMN" supported? # Is "ALTER TABLE ... RENAME COLUMN" supported?
can_alter_table_rename_column = Database.sqlite_version_info >= (3, 25, 0) can_alter_table_rename_column = Database.sqlite_version_info >= (3, 25, 0)
supports_parentheses_in_compound = False supports_parentheses_in_compound = False

View File

@ -237,7 +237,8 @@ Database backend API
This section describes changes that may be needed in third-party database This section describes changes that may be needed in third-party database
backends. backends.
* ... * ``BaseDatabaseFeatures.has_case_insensitive_like`` is changed from ``True``
to ``False`` to reflect the behavior of most databases.
Dropped support for MariaDB 10.2 Dropped support for MariaDB 10.2
-------------------------------- --------------------------------