diff options
| author | Tim Graham <timograham@gmail.com> | 2015-10-08 21:14:24 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-10-09 14:16:06 -0400 |
| commit | 7a5b7e35bf2e219225b9f26d3dd3e34f26e83e9c (patch) | |
| tree | 94a091b4a67137d0161f819dd661835622d0b9af /django | |
| parent | 00db71d452d04e417bcc2a88757af1c9e22b8e74 (diff) | |
Fixed #22705 -- Fixed QuerySet.bulk_create() on models without any fields on Oracle.
Fixed on other backends by 134ca4d438bd7cbe8f0f287a00d545f96fa04a01.
Thanks Mariusz Felisiak for the solution.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/oracle/operations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/oracle/operations.py b/django/db/backends/oracle/operations.py index ce6946011b..0651105d9f 100644 --- a/django/db/backends/oracle/operations.py +++ b/django/db/backends/oracle/operations.py @@ -267,6 +267,9 @@ WHEN (new.%(col_name)s IS NULL) def max_name_length(self): return 30 + def pk_default_value(self): + return "NULL" + def prep_for_iexact_query(self, x): return x |
