[GRASS-SVN] r46276 -
grass/branches/releasebranch_6_4/vector/v.db.connect
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 14 11:30:59 EDT 2011
Author: mmetz
Date: 2011-05-14 08:30:59 -0700 (Sat, 14 May 2011)
New Revision: 46276
Modified:
grass/branches/releasebranch_6_4/vector/v.db.connect/main.c
Log:
fix #1362 for good (backport)
Modified: grass/branches/releasebranch_6_4/vector/v.db.connect/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.db.connect/main.c 2011-05-14 15:29:57 UTC (rev 46275)
+++ grass/branches/releasebranch_6_4/vector/v.db.connect/main.c 2011-05-14 15:30:59 UTC (rev 46276)
@@ -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