[GRASS-SVN] r47749 - grass/trunk/db/drivers/postgres

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 18 11:58:41 EDT 2011


Author: martinl
Date: 2011-08-18 08:58:41 -0700 (Thu, 18 Aug 2011)
New Revision: 47749

Modified:
   grass/trunk/db/drivers/postgres/describe.c
Log:
pg-dbmi: cosmetics in messages


Modified: grass/trunk/db/drivers/postgres/describe.c
===================================================================
--- grass/trunk/db/drivers/postgres/describe.c	2011-08-18 15:57:53 UTC (rev 47748)
+++ grass/trunk/db/drivers/postgres/describe.c	2011-08-18 15:58:41 UTC (rev 47749)
@@ -51,7 +51,6 @@
 
     ncols = PQnfields(res);
 
-
     /* Count columns of known type */
     kcols = 0;
     for (i = 0; i < ncols; i++) {
@@ -100,13 +99,14 @@
 	/* PG types defined in globals.h (and pg_type.h) */
 	if (sqltype == DB_SQL_TYPE_UNKNOWN) {
 	    if (gpgtype == PG_TYPE_POSTGIS_GEOM) {
-		G_warning(_("pg driver: PostGIS column '%s', type 'geometry'  will not be converted"),
+		G_warning(_("PostgreSQL driver: PostGIS column '%s', type 'geometry' "
+			    "will not be converted"),
 			  fname);
 		continue;
 	    }
 	    else {
 		/* Warn, ignore and continue */
-		G_warning(_("pg driver: column '%s', type %d  is not supported"),
+		G_warning(_("PostgreSQL driver: column '%s', type %d is not supported"),
 			  fname, pgtype);
 		continue;
 	    }
@@ -171,7 +171,8 @@
 
     /* Convert internal type to PG_TYPE_* */
 
-    /* TODO: we should load field names from pg_type table instead of using copy of #defines */
+    /* TODO: we should load field names from pg_type table
+       instead of using copy of #defines */
     switch (*gpgtype) {
     case PG_TYPE_BIT:
     case PG_TYPE_INT2:



More information about the grass-commit mailing list