回滚连接
()
| 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 命令 |