Procházet zdrojové kódy

fix https://trac.osgeo.org/grass/ticket/1362 for good

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46274 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz před 14 roky
rodič
revize
41e7b97726
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      vector/v.db.connect/main.c

+ 5 - 2
vector/v.db.connect/main.c

@@ -160,9 +160,12 @@ int main(int argc, char **argv)
 
     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) {