提交 2e422f9e 编写于 作者: J jurgen

Statement warnings & server output

上级 688002b4
...@@ -619,6 +619,10 @@ public class JDBCStatementImpl<STATEMENT extends Statement> implements JDBCState ...@@ -619,6 +619,10 @@ public class JDBCStatementImpl<STATEMENT extends Statement> implements JDBCState
if (warnings == null) { if (warnings == null) {
warnings = new ArrayList<Throwable>(); warnings = new ArrayList<Throwable>();
} }
if (warnings.contains(warning)) {
// Cycle
break;
}
warnings.add(warning); warnings.add(warning);
} }
return warnings == null ? null : warnings.toArray(new Throwable[warnings.size()]); return warnings == null ? null : warnings.toArray(new Throwable[warnings.size()]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册