[GRASS-SVN] r37738 - grass/branches/releasebranch_6_4/vector/v.in.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 4 15:47:09 EDT 2009


Author: neteler
Date: 2009-06-04 15:47:08 -0400 (Thu, 04 Jun 2009)
New Revision: 37738

Modified:
   grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c
Log:
fail on DBMI error

Modified: grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c	2009-06-04 19:46:57 UTC (rev 37737)
+++ grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c	2009-06-04 19:47:08 UTC (rev 37738)
@@ -519,7 +519,8 @@
 	if (driver) {
 	    G_message(_("Populating table..."));
 	    db_commit_transaction(driver);
-	    db_close_database_shutdown_driver(driver);
+	    if(db_close_database_shutdown_driver(driver) == DB_FAILED)
+		G_fatal_error(_("Could not close attribute table. The DBMI driver did not accept all attributes"));
 	}
 	fclose(tmpascii);
     }



More information about the grass-commit mailing list