summaryrefslogtreecommitdiff
path: root/django/db/backends
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@oscaro.com>2014-06-05 17:56:56 +0200
committerAymeric Augustin <aymeric.augustin@oscaro.com>2014-06-05 17:56:56 +0200
commita03d38ddd43957a402b64caddf74a73df72140fb (patch)
treed4d22847367efb130ee95179b45c5c3dc4ecfdd8 /django/db/backends
parent237c229b91ae852ac5f4f0a52b37de3e243ee61f (diff)
Added a flag for the ability to introspect nullable fields.
Previously this was conflated with another Oracle-specific behavior.
Diffstat (limited to 'django/db/backends')
-rw-r--r--django/db/backends/__init__.py3
-rw-r--r--django/db/backends/oracle/base.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
index 3868b41e0d..c3ad179c7a 100644
--- a/django/db/backends/__init__.py
+++ b/django/db/backends/__init__.py
@@ -571,6 +571,9 @@ class BaseDatabaseFeatures(object):
# Can the backend determine reliably the length of a CharField?
can_introspect_max_length = True
+ # Can the backend determine reliably if a field is nullable?
+ can_introspect_null = True
+
# Confirm support for introspected foreign keys
# Every database can do this reliably, except MySQL,
# which can't do it for MyISAM tables
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index de264a7b5b..f7790415db 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -112,6 +112,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_tablespaces = True
supports_sequence_reset = False
can_introspect_max_length = False
+ can_introspect_null = False
can_introspect_time_field = False
atomic_transactions = False
supports_combined_alters = False