2015-01-13 04:20:40 +08:00
|
|
|
from django.db.backends.base.features import BaseDatabaseFeatures
|
|
|
|
from django.db.utils import InterfaceError
|
|
|
|
|
|
|
|
|
|
|
|
class DatabaseFeatures(BaseDatabaseFeatures):
|
|
|
|
interprets_empty_strings_as_nulls = True
|
|
|
|
uses_savepoints = True
|
|
|
|
has_select_for_update = True
|
|
|
|
has_select_for_update_nowait = True
|
2016-06-23 23:52:14 +08:00
|
|
|
has_select_for_update_skip_locked = True
|
2017-06-30 04:00:15 +08:00
|
|
|
has_select_for_update_of = True
|
|
|
|
select_for_update_of_column = True
|
2015-01-13 04:20:40 +08:00
|
|
|
can_return_id_from_insert = True
|
2017-06-01 17:51:02 +08:00
|
|
|
can_introspect_autofield = True
|
2015-01-13 04:20:40 +08:00
|
|
|
supports_subqueries_in_group_by = False
|
|
|
|
supports_transactions = True
|
|
|
|
supports_timezones = False
|
|
|
|
has_native_duration_field = True
|
|
|
|
can_defer_constraint_checks = True
|
|
|
|
supports_partially_nullable_unique_constraints = False
|
|
|
|
truncates_names = True
|
|
|
|
supports_tablespaces = True
|
|
|
|
supports_sequence_reset = False
|
|
|
|
can_introspect_time_field = False
|
|
|
|
atomic_transactions = False
|
|
|
|
supports_combined_alters = False
|
|
|
|
nulls_order_largest = True
|
|
|
|
requires_literal_defaults = True
|
|
|
|
closed_cursor_error_class = InterfaceError
|
|
|
|
bare_select_suffix = " FROM DUAL"
|
|
|
|
uppercases_column_names = True
|
|
|
|
# select for update with limit can be achieved on Oracle, but not with the current backend.
|
|
|
|
supports_select_for_update_with_limit = False
|
2016-01-20 09:43:41 +08:00
|
|
|
supports_temporal_subtraction = True
|
2016-06-21 12:01:03 +08:00
|
|
|
# Oracle doesn't ignore quoted identifiers case but the current backend
|
|
|
|
# does by uppercasing all identifiers.
|
2016-11-29 02:29:21 +08:00
|
|
|
ignores_table_name_case = True
|
2017-05-23 23:02:40 +08:00
|
|
|
supports_index_on_text_field = False
|
2017-07-25 03:51:29 +08:00
|
|
|
has_case_insensitive_like = False
|
2017-08-09 04:13:02 +08:00
|
|
|
create_test_procedure_without_params_sql = """
|
|
|
|
CREATE PROCEDURE "TEST_PROCEDURE" AS
|
|
|
|
V_I INTEGER;
|
|
|
|
BEGIN
|
|
|
|
V_I := 1;
|
|
|
|
END;
|
|
|
|
"""
|
|
|
|
create_test_procedure_with_int_param_sql = """
|
|
|
|
CREATE PROCEDURE "TEST_PROCEDURE" (P_I INTEGER) AS
|
|
|
|
V_I INTEGER;
|
|
|
|
BEGIN
|
|
|
|
V_I := P_I;
|
|
|
|
END;
|
|
|
|
"""
|
2017-08-13 03:06:49 +08:00
|
|
|
supports_callproc_kwargs = True
|
2017-09-18 21:42:29 +08:00
|
|
|
supports_over_clause = True
|
2017-10-06 00:52:37 +08:00
|
|
|
max_query_params = 2**16 - 1
|