Compare commits

...

1 Commits

Author SHA1 Message Date
s.bovsunovskyi
36afd05ef7 feat(TDI-41405): add transaction management (#3177). Revert 2019-01-25 17:44:17 +02:00
2 changed files with 1 additions and 5 deletions

View File

@@ -764,7 +764,6 @@ if(inputSchema != null && inputSchema.size() > 0 && outputSchema != null && outp
%>
<%@ include file="../templates/tMSSql/_tMSSqlConnection.javajet"%>
conn_<%=cid%>.setAutoCommit(false);
if(dbschema_<%=cid%> == null || dbschema_<%=cid%>.trim().length() == 0) {
tableName_<%=cid%> = <%=dbtable%>;
} else {

View File

@@ -184,7 +184,6 @@ if(inputSchema != null && inputSchema.size() > 0 && outputSchema != null && outp
<%
}
%>
conn_<%=cid%>.rollback();
if(lookUpValue_<%=cid%> == null) {
<%
if(!isEnableSaveMemMode) {
@@ -613,10 +612,8 @@ if(inputSchema != null && inputSchema.size() > 0 && outputSchema != null && outp
}
%>
}
conn_<%=cid%>.commit();
} catch (java.lang.Exception e) {//catch
conn_<%=cid%>.rollback();
<%
if (dieOnError) {
%>