[GRASS-SVN] r46275 - grass/branches/develbranch_6/vector/v.db.connect

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 14 11:29:58 EDT 2011


Author: mmetz
Date: 2011-05-14 08:29:57 -0700 (Sat, 14 May 2011)
New Revision: 46275

Modified:
   grass/branches/develbranch_6/vector/v.db.connect/main.c
Log:
fix #1362 for good (backport)

Modified: grass/branches/develbranch_6/vector/v.db.connect/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.db.connect/main.c	2011-05-14 15:28:43 UTC (rev 46274)
+++ grass/branches/develbranch_6/vector/v.db.connect/main.c	2011-05-14 15:29:57 UTC (rev 46275)
@@ -156,9 +156,12 @@
 
     if (print->answer || shell_print->answer || columns->answer) {
 	num_dblinks = Vect_get_num_dblinks(&Map);
-	if (num_dblinks <= 0)
-	    G_fatal_error(_("Database connection for map <%s> is not defined in DB file"),
-			  G_fully_qualified_name(input, mapset));
+	if (num_dblinks <= 0) {
+	    /* it is ok if a vector map is not connected o an attribute table */
+	    G_message(_("Database connection for map <%s> is not defined in DB file"),
+			  input);
+	    exit(EXIT_SUCCESS);
+	}
 	else {			/* num_dblinks > 0 */
 
 	    if (print->answer || shell_print->answer) {



More information about the grass-commit mailing list