[GRASS-SVN] r70423 - grass/branches/releasebranch_7_0/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 24 07:11:49 PST 2017
Author: martinl
Date: 2017-01-24 07:11:49 -0800 (Tue, 24 Jan 2017)
New Revision: 70423
Modified:
grass/branches/releasebranch_7_0/lib/vector/Vlib/open_pg.c
Log:
vlib/pg: disable any settings defined for pg driver (can be problem when running local/remote db clusters) (relbr70: merge r69628 from relbr72)
Modified: grass/branches/releasebranch_7_0/lib/vector/Vlib/open_pg.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/vector/Vlib/open_pg.c 2017-01-24 14:49:52 UTC (rev 70422)
+++ grass/branches/releasebranch_7_0/lib/vector/Vlib/open_pg.c 2017-01-24 15:11:49 UTC (rev 70423)
@@ -522,9 +522,11 @@
/* try connection settings for given database first, then try
* any settings defined for pg driver */
db_get_login2("pg", dbname, &user, &passwd, &host, &port);
+ /* any settings defined for pg driver disabled - can cause
+ problems when running multiple local/remote db clusters
if (strlen(dbname) > 0 && !user && !passwd)
db_get_login2("pg", NULL, &user, &passwd, &host, &port);
-
+ */
if (user || passwd || host || port) {
char conninfo[DB_SQL_MAX];
More information about the grass-commit
mailing list