MCPcopy Create free account
hub / github.com/diyhi/bbs / rollbackConnection

Method rollbackConnection

src/main/java/cms/utils/SqlScriptRunner.java:210–221  ·  view source on GitHub ↗

回滚连接

()

Source from the content-addressed store, hash-verified

208 * 回滚连接
209 */
210 private void rollbackConnection() {
211 try {
212 if (!connection.getAutoCommit()) {
213 connection.rollback();
214 }
215 } catch (Throwable t) {
216 if (logger.isErrorEnabled()) {
217 logger.error("回滚连接",t);
218 }
219 // ignore
220 }
221 }
222 /**
223 * 检查丢失行终结符
224 * @param command 命令

Callers 1

runScriptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected