From 280758acc5caaa4ee5be760680737a67cd23b12a Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Thu, 10 Apr 2014 19:15:17 -0400 Subject: [PATCH] Fixed bug in example code. --- doc/build/orm/session.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3