[GRASS5] [bug #4310] (grass) db.drivers: what do the -pf actually do?

Hamish hamish_nospam at yahoo.com
Wed Apr 19 19:53:40 EDT 2006

> this bug's URL: http://intevation.de/rt/webrt?serial_num=4310
> ---------------------------------------------------------------------
> Subject: db.drivers: what do the -pf actually do?
> In db.drivers there is a "-p" for "print tables and exit" [1], but it
> doesn't report any tables for me. Is it supposed to? I'm not sure if
> it is not a mistake (copy/paste form db.tables?) in help or else, but
> something's wrong here. Secondly, the output of "-f" [2] and "-p" [3]
> differs only in regard to ":" after the driver name, which also looks
> like if something's missing here or wrong.

the output is correct,

GRASS> db.drivers -p

The module is to tell you about installed db DRIVERS not TABLES.
It is working fine.

AFAICT, comment is unused in GRASS 6 (???).
see lib/db/dbmi_base/dbmscap.c

here's the actual code:


    for (p = list; p; p = p->next) {
      fprintf(stdout, "%s", p->driverName);
      if (parms.f) fprintf(stdout, ":%s", p->comment);
      fprintf(stdout, "\n");


typedef struct _dbmscap {
    char driverName[256];   /* symbolic name for the dbms system */
    char startup[256];      /* command to run the driver */
    char comment[256];      /* comment field             */
    struct _dbmscap *next;  /* linked list               */
} dbDbmscap;


More information about the grass-dev mailing list