提交 8bbd491c 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:".
上级 3bff5c56
......@@ -110,7 +110,7 @@ public class TestDataSource extends TestBase {
XAConnection xaConn = ds.getXAConnection();
int traceId = ((JdbcXAConnection) xaConn).getTraceId();
assertTrue(xaConn.toString().startsWith("xads" + traceId + ": conn1: url="));
assertTrue(xaConn.toString().startsWith("xads" + traceId + ": conn"));
xaConn.addConnectionEventListener(new ConnectionEventListener() {
public void connectionClosed(ConnectionEvent event) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论