[GRASS-SVN] r50053 - grass/trunk/db/db.execute
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 3 09:10:55 EST 2012
Author: martinl
Date: 2012-01-03 06:10:55 -0800 (Tue, 03 Jan 2012)
New Revision: 50053
Modified:
grass/trunk/db/db.execute/main.c
Log:
db.execute: attempt to fix #1526
Modified: grass/trunk/db/db.execute/main.c
===================================================================
--- grass/trunk/db/db.execute/main.c 2012-01-03 14:09:55 UTC (rev 50052)
+++ grass/trunk/db/db.execute/main.c 2012-01-03 14:10:55 UTC (rev 50053)
@@ -82,9 +82,12 @@
db_get_string(&stmt));
error++;
}
- else
+ else {
+ db_close_database(driver);
+ db_shutdown_driver(driver);
G_fatal_error(_("Error while executing: '%s'"),
db_get_string(&stmt));
+ }
}
}
}
More information about the grass-commit
mailing list