From 10ea59241feb9daa8463e1052ed04eaca29abb44 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 d53dc86301..ec96324d57 100644 --- a/doc/build/orm/session.rst +++ b/doc/build/orm/session.rst @@ -2043,7 +2043,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