]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Added optional "sa_pool_key" argument to
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2011 16:36:30 +0000 (12:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2011 16:36:30 +0000 (12:36 -0400)
    pool.manage(dbapi).connect() so that serialization
    of args is not necessary.

CHANGES
lib/sqlalchemy/pool.py

diff --git a/CHANGES b/CHANGES
index 7c6efecc402f6522bcf846c87ba340eaa4c7a495..4d16c708dd8dab4a9b397398d20cfde8bf8f7286 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -132,6 +132,10 @@ CHANGES
     messages use the same improved formatting.  
     [ticket:2243]
 
+  - Added optional "sa_pool_key" argument to 
+    pool.manage(dbapi).connect() so that serialization
+    of args is not necessary.
+
 - types
   - Extra keyword arguments to the base Float 
     type beyond "precision" and "asdecimal" are ignored;
index dd945e0740e290893d6cd32237efc27814eb395c..0bca5f599a45442d8a1841bf3f4b69ac18e3d3f0 100644 (file)
@@ -953,6 +953,9 @@ class _DBProxy(object):
             pass
 
     def _serialize(self, *args, **kw):
+        if "sa_pool_key" in kw:
+            return kw['sa_pool_key']
+
         return tuple(
             list(args) + 
             [(k, kw[k]) for k in sorted(kw)]