[GRASS-SVN] r58706 - grass/trunk/db/db.execute
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 13 10:40:06 PST 2014
Author: martinl
Date: 2014-01-13 10:40:05 -0800 (Mon, 13 Jan 2014)
New Revision: 58706
Modified:
grass/trunk/db/db.execute/main.c
Log:
db.execute: revert r58703 (bad idea to force transaction in low level module)
Modified: grass/trunk/db/db.execute/main.c
===================================================================
--- grass/trunk/db/db.execute/main.c 2014-01-13 18:23:10 UTC (rev 58705)
+++ grass/trunk/db/db.execute/main.c 2014-01-13 18:40:05 UTC (rev 58706)
@@ -75,16 +75,13 @@
if (db_open_database(driver, &handle) != DB_OK)
G_fatal_error(_("Unable to open database <%s>"), parms.database);
G_add_error_handler(error_handler, driver);
-
+
if (parms.sql) {
/* parms.sql */
db_set_string(&stmt, parms.sql);
ret = db_execute_immediate(driver, &stmt);
}
else { /* parms.input */
- /* perform execution in one transaction if possible */
- db_begin_transaction(driver);
-
while (get_stmt(fd, &stmt)) {
if (stmt_is_empty(&stmt))
continue;
@@ -104,8 +101,6 @@
}
}
}
-
- db_commit_transaction(driver);
}
db_close_database(driver);
More information about the grass-commit
mailing list