From: Daniel Smith Date: Thu, 10 Apr 2014 23:15:17 +0000 (-0400) Subject: Fixed bug in example code. X-Git-Tag: rel_0_8_7~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=280758acc5caaa4ee5be760680737a67cd23b12a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fixed bug in example code. --- diff --git a/doc/build/orm/session.rst b/doc/build/orm/session.rst index db52f1f394..b4aea79fe4 100644 --- a/doc/build/orm/session.rst +++ b/doc/build/orm/session.rst @@ -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)