]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixed bug in example code.
authorDaniel Smith <daniel@plumperfect.com>
Thu, 10 Apr 2014 23:15:17 +0000 (19:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Apr 2014 18:53:49 +0000 (14:53 -0400)
doc/build/orm/session.rst

index db52f1f39478290ee769c06e7a2c30350bed816c..b4aea79fe4bd4aa619a240c18fb5422a49dbb829 100644 (file)
@@ -1888,7 +1888,7 @@ entire database interaction is rolled back::
             self.connection = engine.connect()
 
             # begin a non-ORM transaction
-            self.trans = connection.begin()
+            self.trans = self.connection.begin()
 
             # bind an individual Session to the connection
             self.session = Session(bind=self.connection)