[GRASS-SVN] r39552 - grass/trunk/vector/v.db.connect

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 17 13:32:25 EDT 2009


Author: martinl
Date: 2009-10-17 13:32:25 -0400 (Sat, 17 Oct 2009)
New Revision: 39552

Modified:
   grass/trunk/vector/v.db.connect/main.c
Log:
v.db.connect: initial direct OGR read access support


Modified: grass/trunk/vector/v.db.connect/main.c
===================================================================
--- grass/trunk/vector/v.db.connect/main.c	2009-10-17 17:29:12 UTC (rev 39551)
+++ grass/trunk/vector/v.db.connect/main.c	2009-10-17 17:32:25 UTC (rev 39552)
@@ -197,7 +197,7 @@
 	    }			/* end print */
 	    else {		/* columns */
 
-		if ((fi = Vect_get_field(&Map, field)) == NULL)
+		if ((fi = Vect_get_field2(&Map, field_opt->answer)) == NULL)
 		    G_fatal_error(_("Database connection not defined for layer <%s>"),
 				  field_opt->answer);
 		driver = db_start_driver(fi->driver);



More information about the grass-commit mailing list