[GRASS-SVN] r60045 - grass/trunk/vector/v.in.db

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 2 08:25:56 PDT 2014


Author: hcho
Date: 2014-05-02 08:25:56 -0700 (Fri, 02 May 2014)
New Revision: 60045

Modified:
   grass/trunk/vector/v.in.db/main.c
Log:
Don't check if the table exists when -t option is given

Modified: grass/trunk/vector/v.in.db/main.c
===================================================================
--- grass/trunk/vector/v.in.db/main.c	2014-05-02 14:50:04 UTC (rev 60044)
+++ grass/trunk/vector/v.in.db/main.c	2014-05-02 15:25:56 UTC (rev 60045)
@@ -137,7 +137,8 @@
 	    outvect->answer, db_get_default_driver_name(),
 	    db_get_default_database_name());
 
-    if (db_table_exists(db_get_default_driver_name(),
+    if (!same_table_flag->answer &&
+	db_table_exists(db_get_default_driver_name(),
 			db_get_default_database_name(), outvect->answer) == 1)
 	G_fatal_error(_("Output vector map, table <%s> (driver: <%s>, database: <%s>) "
 		       "already exists"), outvect->answer,



More information about the grass-commit mailing list