mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-31 21:08:36 -04:00
Fixed bug in example code.
This commit is contained in:
Vendored
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user