Commits

Mike Bayer committed 89451c4

cursor() method on ConnectionFairy allows db-specific extension
arguments to be propigated [ticket:221]

Comments (0)

Files changed (2)

 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

lib/sqlalchemy/pool.py

         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):