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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 22 06:00:33 EDT 2010


Author: hamish
Date: 2010-09-22 10:00:32 +0000 (Wed, 22 Sep 2010)
New Revision: 43610

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

Modified: grass/trunk/vector/v.in.ascii/main.c
===================================================================
--- grass/trunk/vector/v.in.ascii/main.c	2010-09-22 09:50:02 UTC (rev 43609)
+++ grass/trunk/vector/v.in.ascii/main.c	2010-09-22 10:00:32 UTC (rev 43610)
@@ -522,7 +522,11 @@
 	    G_message(_("Populating table..."));
 	    db_commit_transaction(driver);
 	    if(db_close_database_shutdown_driver(driver) == DB_FAILED)
+#ifdef __MINGW32__
+		G_warning("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