From bc91f27a86090b4c688b56cd4e37f95eebe6e969 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Mon, 10 Jun 2019 13:56:50 +0200 Subject: Refs #29444 -- Added support for fetching a returned non-integer insert values on Oracle. This is currently not actively used, since the ORM will ask the SQL compiler to only return auto fields. --- django/db/models/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/db/models/sql') diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index a14f1254aa..eaccc96d7d 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1304,7 +1304,7 @@ class SQLInsertCompiler(SQLCompiler): if ignore_conflicts_suffix_sql: result.append(ignore_conflicts_suffix_sql) col = "%s.%s" % (qn(opts.db_table), qn(opts.pk.column)) - r_fmt, r_params = self.connection.ops.return_insert_id() + r_fmt, r_params = self.connection.ops.return_insert_id(opts.pk) # Skip empty r_fmt to allow subclasses to customize behavior for # 3rd party backends. Refs #19096. if r_fmt: -- cgit v1.3