Changeset: f4f44e5444b0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f4f44e5444b0
Modified Files:
        sql/backends/monet5/sql.c
Branch: HTM
Log Message:

Remove duplicated SQLcommit


diffs (32 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -368,28 +368,6 @@ SQLpersistcommit(Client cntxt, MalBlkPtr
 }
 
 str
-SQLcommit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
-{
-       int ret;
-       mvc *sql = NULL;
-       str msg;
-       (void) stk;
-       (void) pci;
-
-       if ((msg = getSQLContext(cntxt, mb, &sql, NULL)) != NULL)
-               return msg;
-       if ((msg = checkSQLContext(cntxt)) != NULL)
-               return msg;
-
-       if (sql->session->auto_commit != 0)
-               throw(SQL, "sql.trans", "2DM30!COMMIT: not allowed in auto 
commit mode");
-       ret = mvc_commit(sql, 0, 0);
-       if (ret < 0)
-               throw(SQL, "sql.trans", "2D000!COMMIT: failed");
-       return msg;
-}
-
-str
 SQLshutdown_wrap(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
 {
        str answ = *(str *) getArgReference(stk, pci, 0);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to