#15 DBConnection gets unexpected keyword argument 'pool'

closed-fixed
nobody
Postgres (36)
5
2004-03-03
2003-12-14
gst
No

PostgresConnection contains the following code:

------------------------------------
self.autoCommit = autoCommit
if not autoCommit and not kw.has_key('pool'):
___ # Pooling doesn't work with transactions...
___ kw['pool'] = 0

[...]

DBAPI.__init__(self, **kw)
------------------------------------

DBAPI then calls:
DBConnection.__init__(self, **kw)

which throws an exception when 'pool' is set, because
DBConnection doesn't know the 'pool' keyword argument.

Discussion

  • Ian Bicking

    Ian Bicking - 2004-03-03
    • status: open --> closed
     
  • Ian Bicking

    Ian Bicking - 2004-03-03
    • status: closed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks