From ed8b310479eab10a66ccc347144179fef3b0d5a2 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 7 Feb 2010 19:24:49 +0000 Subject: [PATCH] dont reference self.statement during compilation --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 4486c24db4..90def19413 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -809,7 +809,7 @@ class SQLCompiler(engine.Compiled): need_pks = self.isinsert and \ not self.inline and \ - not self.statement._returning + not stmt._returning implicit_returning = need_pks and \ self.dialect.implicit_returning and \ -- 2.47.3