Daniele Varrazzo
27cd6c4880
Added specific pool implementation for ZPsycopgDA
...
The implementation is based on psycopg 2.4, which should be less broken
(zope-wise) of the current one.
Instantiating psycopg2.pool.PersistentConnectionPool now raises a warning.
This should fix ticket #123 , #125 . The issue of the reset on
set_client_encoding() is still present but that's always been there and I'm no
good at fixing it.
2012-12-04 00:30:58 +00:00
Daniele Varrazzo
a2ee25ecfe
Check the connection status before putting back into the pool
...
Rollback connections in transaction or in error.
Discard broken connections.
Closes ticket #62 .
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
4fd5f3267b
Raise PoolError when putting a connection not belonging to the pool
...
A KeyError was raised instead.
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
31093a7a58
Some light cleanup for Py3 conversion.
...
Either flagged as warning by python2.6 -3 or converted by 2to3.
2010-12-21 04:02:13 +00:00
Daniele Varrazzo
927f2bb1f1
Dropped logging.basicConfig() call.
...
It messes up with projects using logging but where no handler is
installed on the root logger. Bug reported by Joe Abbate.
2010-07-09 23:23:10 +01:00
Daniele Varrazzo
97ced0d4f1
Use the default role for cross referencing Python objects.
2010-02-26 00:49:19 +00:00
Daniele Varrazzo
4412826556
Added documentation for the 'pool' module.
2010-02-26 00:46:23 +00:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
Federico Di Gregorio
825a60eec5
Removed spurious print
2009-03-16 22:15:20 +01:00
Federico Di Gregorio
38cf5f4520
Logging patch from Charlie.
2006-09-01 07:12:23 +00:00
Federico Di Gregorio
f687f2853e
Various pool changes.
2005-10-19 14:38:37 +00:00
Federico Di Gregorio
a6b4a8b092
Indentation fixes.
2005-09-30 16:33:13 +00:00
Federico Di Gregorio
b7e5e5e272
piro pool.py patch.
2005-09-24 13:59:57 +00:00
Federico Di Gregorio
feeea0309a
psycopg->psycopg2 fixes.
2005-09-12 02:29:46 +00:00
Federico Di Gregorio
1141149cd3
License changes. Fixes. Added register_adapter().
2005-01-20 05:49:40 +00:00
Federico Di Gregorio
c904d97f69
Initial psycopg 2 import after SVN crash.
2004-10-19 03:17:12 +00:00