提交 a680461e authored 作者: noelgrandin's avatar noelgrandin

fix: don't continue if check for driver returns null

上级 9cbade48
...@@ -44,6 +44,7 @@ public class TestOldVersion extends TestBase { ...@@ -44,6 +44,7 @@ public class TestOldVersion extends TestBase {
driver = getDriver(cl); driver = getDriver(cl);
if (driver == null) { if (driver == null) {
println("not found: ext/h2-1.2.127.jar - test skipped"); println("not found: ext/h2-1.2.127.jar - test skipped");
return;
} }
Connection conn = driver.connect("jdbc:h2:mem:", null); Connection conn = driver.connect("jdbc:h2:mem:", null);
assertEquals("1.2.127 (2010-01-15)", conn.getMetaData().getDatabaseProductVersion()); assertEquals("1.2.127 (2010-01-15)", conn.getMetaData().getDatabaseProductVersion());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论