mirror of
https://github.com/django/django.git
synced 2025-07-27 23:24:14 +00:00
Fixed #17056 -- Tweaked insert SQL clause generation so a corner case doesn't fail with Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b7f2aba566
commit
5f2be4ecbb
2 changed files with 10 additions and 1 deletions
|
@ -824,7 +824,7 @@ class SQLInsertCompiler(SQLCompiler):
|
|||
for val in values
|
||||
]
|
||||
if self.return_id and self.connection.features.can_return_id_from_insert:
|
||||
params = values[0]
|
||||
params = params[0]
|
||||
col = "%s.%s" % (qn(opts.db_table), qn(opts.pk.column))
|
||||
result.append("VALUES (%s)" % ", ".join(placeholders[0]))
|
||||
r_fmt, r_params = self.connection.ops.return_insert_id()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue