Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#257 backend param not handled correctly

closed-fixed
Oleg Broytman
Postgres (36)
5
2009-12-31
2009-12-31
dkeeney
No

When a 'backend' parameter is passed to the PostgresConnection __init__, it is ignored.

from postgres/pgconnection.py :

This first line in __init__,
backends = kw.pop('backend', None) or 'psycopg'

should be like:
backends = backend or 'psycopg'

or just:
backends = backend

since the backend param has a default value of 'psycopg'.

Discussion

  • Oleg Broytman
    Oleg Broytman
    2009-12-31

    • assigned_to: nobody --> phd
    • status: open --> closed-fixed
     
  • Oleg Broytman
    Oleg Broytman
    2009-12-31

    You are right.

    backends = backend

    is enough. Fixed in the revision 4062, will be in the next round of releases. Thank you!