]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix wrong var name, credit to @RazerM
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Aug 2016 22:26:34 +0000 (18:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Aug 2016 22:26:34 +0000 (18:26 -0400)
Change-Id: I36fbbfd1223ef5298c679f46db24e1bf3013cef0

doc/build/changelog/migration_11.rst

index 36c5ead3c22ca49684bafabe920432a95b7176af..ed64565d1e5f094fa968136297c7b4cf117836cc 100644 (file)
@@ -1385,7 +1385,7 @@ and the column arguments passed to :meth:`.TextClause.columns`::
             Address.email_address
          )
 
-    query = session.query(User).from_statement(text).\
+    query = session.query(User).from_statement(stmt).\
         options(contains_eager(User.addresses))
     result = query.all()