You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by ju...@apache.org on 2013/02/06 11:32:12 UTC
svn commit: r1442889 -
/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
Author: jure
Date: Wed Feb 6 10:32:11 2013
New Revision: 1442889
URL: http://svn.apache.org/viewvc?rev=1442889&view=rev
Log:
#288, add cursor property to Bloodhound connection wrapper, patch t288_r1441419_sql_translate_cursor.patch (from Olemis)
Modified:
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py?rev=1442889&r1=1442888&r2=1442889&view=diff
==============================================================================
--- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py (original)
+++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py Wed Feb 6 10:32:11 2013
@@ -107,6 +107,10 @@ class BloodhoundConnectionWrapper(object
BloodhoundIterableCursor.set_env(self.env)
return self.connection.executemany(query, params=params)
+ def cursor(self):
+ BloodhoundIterableCursor.set_env(self.env)
+ return self.connection.cursor()
+
class ProductEnvContextManager(object):
"""Wrap an underlying database context manager so as to keep track
of (nested) product context.