[GRASS-SVN] r60647 - grass/branches/releasebranch_7_0/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 31 08:37:57 PDT 2014
Author: martinl
Date: 2014-05-31 08:37:57 -0700 (Sat, 31 May 2014)
New Revision: 60647
Modified:
grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c
Log:
v.in.ogr: check return code for Vect_close (related to PostGIS Topology)
(merge r60553 from trunk)
Modified: grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c 2014-05-31 15:36:47 UTC (rev 60646)
+++ grass/branches/releasebranch_7_0/vector/v.in.ogr/main.c 2014-05-31 15:37:57 UTC (rev 60647)
@@ -1458,7 +1458,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