]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
cursor() method on ConnectionFairy allows db-specific extension
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Jun 2006 20:15:54 +0000 (20:15 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Jun 2006 20:15:54 +0000 (20:15 +0000)
arguments to be propigated [ticket:221]

CHANGES
lib/sqlalchemy/pool.py

diff --git a/CHANGES b/CHANGES
index 62b8a0dedc1279abafacd989714bb4b0fff72385..1f94c6eee7262bc379acc86bbaddd12bb9cde8bd 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -28,6 +28,8 @@ then returns its connection to the Queue via the the put() method,
 causing a reentrant hang unless threading.RLock is used.
 - postgres will not place SERIAL keyword on a primary key column
 if it has a foreign key constraint
+- cursor() method on ConnectionFairy allows db-specific extension
+arguments to be propigated [ticket:221]
 
 0.2.3
 - overhaul to mapper compilation to be deferred.  this allows mappers
index 0a5b5ca2a733eb66b06f477dc67c7b0bd3127285..006328d7dc2643b92b06e89ce4ca3c0a2904feb6 100644 (file)
@@ -141,8 +141,8 @@ class ConnectionFairy(object):
         self.connection.rollback()
         self.connection = None
         self.pool.return_invalid()
-    def cursor(self):
-        return CursorFairy(self, self.connection.cursor())
+    def cursor(self, *args, **kwargs):
+        return CursorFairy(self, self.connection.cursor(*args, **kwargs))
     def __getattr__(self, key):
         return getattr(self.connection, key)
     def checkout(self):