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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 21 21:40:50 EDT 2010


Author: hamish
Date: 2010-09-22 01:40:50 +0000 (Wed, 22 Sep 2010)
New Revision: 43601

Modified:
   grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c
Log:
don't exit with an error on WinGrass (bug #1159; merge from devbr6)

Modified: grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c	2010-09-21 18:46:33 UTC (rev 43600)
+++ grass/branches/releasebranch_6_4/vector/v.in.ascii/in.c	2010-09-22 01:40:50 UTC (rev 43601)
@@ -519,8 +519,13 @@
 	if (driver) {
 	    G_message(_("Populating table..."));
 	    db_commit_transaction(driver);
+
 	    if(db_close_database_shutdown_driver(driver) == DB_FAILED)
+#ifdef __MINGW32__
+		G_debug(1, "FIXME: db_close_database_shutdown_driver() fails on WinGrass. Ignoring...");
+#else
 		G_fatal_error(_("Could not close attribute table. The DBMI driver did not accept all attributes"));
+#endif
 	}
 	fclose(tmpascii);
     }



More information about the grass-commit mailing list