[GRASS-SVN] r46274 - grass/trunk/vector/v.db.connect
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 14 11:28:43 EDT 2011
Author: mmetz
Date: 2011-05-14 08:28:43 -0700 (Sat, 14 May 2011)
New Revision: 46274
Modified:
grass/trunk/vector/v.db.connect/main.c
Log:
fix #1362 for good
Modified: grass/trunk/vector/v.db.connect/main.c
===================================================================
--- grass/trunk/vector/v.db.connect/main.c 2011-05-14 13:53:25 UTC (rev 46273)
+++ grass/trunk/vector/v.db.connect/main.c 2011-05-14 15:28:43 UTC (rev 46274)
@@ -160,9 +160,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"),
+ if (num_dblinks <= 0) {
+ /* it is ok if a vector map is not connected o an attribute table */
+ G_message(_("Map <%s> is not connected to a database"),
input);
+ exit(EXIT_SUCCESS);
+ }
else { /* num_dblinks > 0 */
if (print->answer || shell_print->answer) {
More information about the grass-commit
mailing list