[GRASS-SVN] r37736 - grass/trunk/vector/v.in.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 4 15:46:12 EDT 2009


Author: neteler
Date: 2009-06-04 15:46:12 -0400 (Thu, 04 Jun 2009)
New Revision: 37736

Modified:
   grass/trunk/vector/v.in.ascii/main.c
Log:
fail on DBMI error

Modified: grass/trunk/vector/v.in.ascii/main.c
===================================================================
--- grass/trunk/vector/v.in.ascii/main.c	2009-06-04 19:43:57 UTC (rev 37735)
+++ grass/trunk/vector/v.in.ascii/main.c	2009-06-04 19:46:12 UTC (rev 37736)
@@ -520,7 +520,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