summaryrefslogtreecommitdiff
path: root/django/db/backends/base
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/backends/base')
-rw-r--r--django/db/backends/base/features.py5
-rw-r--r--django/db/backends/base/operations.py3
2 files changed, 8 insertions, 0 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py
index a1d38d3530..190f728bba 100644
--- a/django/db/backends/base/features.py
+++ b/django/db/backends/base/features.py
@@ -164,6 +164,8 @@ class BaseDatabaseFeatures:
# Can we roll back DDL in a transaction?
can_rollback_ddl = False
+ schema_editor_uses_clientside_param_binding = False
+
# Does it support operations requiring references rename in a transaction?
supports_atomic_references_rename = True
@@ -335,6 +337,9 @@ class BaseDatabaseFeatures:
# Does the backend support the logical XOR operator?
supports_logical_xor = False
+ # Set to (exception, message) if null characters in text are disallowed.
+ prohibits_null_characters_in_text_exception = None
+
# Collation names for use by the Django test suite.
test_collations = {
"ci": None, # Case-insensitive.
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py
index 407681a418..4ee73c0734 100644
--- a/django/db/backends/base/operations.py
+++ b/django/db/backends/base/operations.py
@@ -525,6 +525,9 @@ class BaseDatabaseOperations:
else:
return value
+ def adapt_integerfield_value(self, value, internal_type):
+ return value
+
def adapt_datefield_value(self, value):
"""
Transform a date value to an object compatible with what is expected