diff options
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/compiler.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 22cd09c30c..85adbfdcd9 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1334,14 +1334,6 @@ class SQLInsertCompiler(SQLCompiler): if self.connection.features.can_return_rows_from_bulk_insert and len(self.query.objs) > 1: return self.connection.ops.fetch_returned_insert_rows(cursor) if self.connection.features.can_return_columns_from_insert: - if ( - len(self.returning_fields) > 1 and - not self.connection.features.can_return_multiple_columns_from_insert - ): - raise NotSupportedError( - 'Returning multiple columns from INSERT statements is ' - 'not supported on this database backend.' - ) assert len(self.query.objs) == 1 return self.connection.ops.fetch_returned_insert_columns(cursor, self.returning_params) return [self.connection.ops.last_insert_id( |
