Ticket #30 (closed defect: fixed)

Opened 19 months ago

Last modified 12 months ago

r485 broke Python bindings

Reported by: reid@… Owned by: artem
Priority: Milestone: 0.5.0
Component: Boost.Python Binding Version: SVN Trunk
Severity: Normal Keywords:
Cc: Patch Needs Improvement:
Needs Docmentation: Has Patch?:
Design Decision Needed:

Description

Starting in r485, e.g.

datasource_bmpolygons = PostGIS(host=conf.db_host,
                                dbname=conf.db_name,
                                user=conf.db_user,
                                password=conf.db_password,
                                table='bmpolygon_joined_current')

where conf.db_host and conf.db_password are both None, fails with

connection  [host= dbname=cycling user=cycling password= connect_timeout=4] failed
could not translate host name "dbname=cycling" to address: Name or service not known

Change History

Changed 12 months ago by artem

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.5.0

Work fine if host and user are None :

>>> ds = PostGIS(host=None, dbname='openstreetmap', user=None,table='planet_osm_point')

but fails with empty strings:

>>> ds = PostGIS(host='', dbname='openstreetmap', user=None,table='planet_osm_point')

Fixed in r615

Note: See TracTickets for help on using tickets.