[GRASS-SVN] r69627 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 2 09:26:21 PDT 2016


Author: martinl
Date: 2016-10-02 09:26:21 -0700 (Sun, 02 Oct 2016)
New Revision: 69627

Modified:
   grass/trunk/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)

Modified: grass/trunk/lib/vector/Vlib/open_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open_pg.c	2016-10-02 13:19:05 UTC (rev 69626)
+++ grass/trunk/lib/vector/Vlib/open_pg.c	2016-10-02 16:26:21 UTC (rev 69627)
@@ -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