[GRASS-SVN] r60553 - grass/trunk/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 28 10:39:30 PDT 2014
Author: martinl
Date: 2014-05-28 10:39:30 -0700 (Wed, 28 May 2014)
New Revision: 60553
Modified:
grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.ogr: check return code for Vect_close (related to PostGIS Topology)
Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c 2014-05-28 16:56:54 UTC (rev 60552)
+++ grass/trunk/vector/v.in.ogr/main.c 2014-05-28 17:39:30 UTC (rev 60553)
@@ -1503,7 +1503,8 @@
}
delete_table = Vect_maptype(&Map) != GV_FORMAT_NATIVE;
- Vect_close(&Map);
+ if (0 != Vect_close(&Map))
+ G_fatal_error(_("Import failed"));
/* create index - may fail on non-unique categories */
if (db_create_index2(driver, Fi->table, key_column) != DB_OK)
More information about the grass-commit
mailing list