[GRASS-SVN] r43550 - grass/branches/develbranch_6/vector/v.in.ascii
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 21 01:34:03 EDT 2010
Author: hamish
Date: 2010-09-21 05:34:03 +0000 (Tue, 21 Sep 2010)
New Revision: 43550
Modified:
grass/branches/develbranch_6/vector/v.in.ascii/in.c
Log:
don't exit with an error on WinGrass (bug #1159)
Modified: grass/branches/develbranch_6/vector/v.in.ascii/in.c
===================================================================
--- grass/branches/develbranch_6/vector/v.in.ascii/in.c 2010-09-21 03:33:26 UTC (rev 43549)
+++ grass/branches/develbranch_6/vector/v.in.ascii/in.c 2010-09-21 05:34:03 UTC (rev 43550)
@@ -522,8 +522,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