[GRASS-SVN] r50051 - grass/branches/releasebranch_6_4/db/base

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 3 09:05:59 EST 2012


Author: martinl
Date: 2012-01-03 06:05:59 -0800 (Tue, 03 Jan 2012)
New Revision: 50051

Modified:
   grass/branches/releasebranch_6_4/db/base/execute.c
Log:
db.execute: attempt to fix #1526

Modified: grass/branches/releasebranch_6_4/db/base/execute.c
===================================================================
--- grass/branches/releasebranch_6_4/db/base/execute.c	2012-01-03 14:03:15 UTC (rev 50050)
+++ grass/branches/releasebranch_6_4/db/base/execute.c	2012-01-03 14:05:59 UTC (rev 50051)
@@ -79,9 +79,13 @@
 			      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