Skip to content

Commit

Permalink
returning ConnectionFairy instead of low-level connection
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed May 10, 2008
1 parent 8f250dc commit 5026e91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/z3c/sqlalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def session(self):
def connection(self):
""" Return underlying connection """
session = self.session
return session.connection().connection.connection
# Return the ConnectionFairy
return session.connection().connection
# instead of the raw connection
#return session.connection().connection.connection

def registerMapper(self, mapper, name):
self._mappers.registerMapper(mapper, name)
Expand Down

0 comments on commit 5026e91

Please sign in to comment.