[GRASS-dev] [GRASS GIS] #3167: db.connect: connection to remote database does not work

GRASS GIS trac at osgeo.org
Wed Sep 28 06:53:14 PDT 2016


#3167: db.connect: connection to remote database does not work
--------------------------+-----------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  blocker      |  Milestone:  7.0.5
 Component:  Database     |    Version:  unspecified
Resolution:               |   Keywords:  postgresql db.connect
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-----------------------------------

Comment (by martinl):

 Replying to [comment:21 mlennert]:
 > If I skip the condition check (but obviously the 'PG:' check is needed),
 and I add something like this to main.c:

 Make sense to me to skip default driver check.

 > {{{
 > ===================================================================
 > --- main.c    (révision 69596)
 > +++ main.c    (copie de travail)
 > @@ -382,6 +382,10 @@
 >                  strcat(dsn, " passwd=");
 >                  strcat(dsn, conn.password);
 >              }
 > +            if (conn.hostName) {
 > +                strcat(dsn, " host=");
 > +                strcat(dsn, conn.hostName);
 > +            }
 >              /* TODO: host/port... */
 >          }
 >          else {
 > }}}

 Then I would add also a `port` item.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3167#comment:24>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list