提交 3bff5c56 authored 作者: Thomas Mueller's avatar Thomas Mueller

Connection pool / DataSource: a NullPointerException was thrown when using a…

Connection pool / DataSource: a NullPointerException was thrown when using a database URL that doesn't start with "jdbc:h2:".
上级 f19e298f
......@@ -110,7 +110,7 @@ public class TestDataSource extends TestBase {
XAConnection xaConn = ds.getXAConnection();
int traceId = ((JdbcXAConnection) xaConn).getTraceId();
assertEquals("xads" + traceId + ": url=" + url + " user=" + user, xaConn.toString());
assertTrue(xaConn.toString().startsWith("xads" + traceId + ": conn1: url="));
xaConn.addConnectionEventListener(new ConnectionEventListener() {
public void connectionClosed(ConnectionEvent event) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论