[FWTools] Connecting to PostgreSQL with fwtools
Even Rouault
even.rouault at mines-paris.org
Wed Jul 8 13:28:58 EST 2009
Le Wednesday 08 July 2009 10:49:07 Flavio Perri - QMap srl, vous avez écrit :
> Hello again,
> thanks for your answers! I resolved using the CPLGetLastErrorMsg() and
> found that the parameter "passwd" in the connection string was wrong!!
> Looking at PQconnectDB() docs, I saw that it should be:"password".
> Why "ogr2ogr" works with that string?
Thanks for noticing ! I've just fixed the OGR PG driver doc to
mention 'password' and not passwd. I can't understand why you wouldn't get
the same behaviour in your own code and with ogr2ogr. Both are using the same
code path as far as connecting to the database is concerned.
More information about the FWTools
mailing list