提交 b860455f authored 作者: S.Vladykin's avatar S.Vladykin

Networked test is disabled

上级 c5d3a33e
...@@ -394,13 +394,15 @@ public class TestTableEngines extends TestBase { ...@@ -394,13 +394,15 @@ public class TestTableEngines extends TestBase {
} }
private void testBatchedJoin() throws SQLException { private void testBatchedJoin() throws SQLException {
if (config.networked) {
// networked test is disabled because it relies on OptimizerHints which is ThreadLocal
return;
}
deleteDb("testBatchedJoin"); deleteDb("testBatchedJoin");
Connection conn = getConnection("testBatchedJoin;OPTIMIZE_REUSE_RESULTS=0;BATCH_JOINS=1"); Connection conn = getConnection("testBatchedJoin;OPTIMIZE_REUSE_RESULTS=0;BATCH_JOINS=1");
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
if (!config.networked) { Session s = (Session) ((JdbcConnection) conn).getSession();
Session s = (Session) ((JdbcConnection) conn).getSession(); assertTrue(s.isJoinBatchEnabled());
assertTrue(s.isJoinBatchEnabled());
}
setBatchingEnabled(stat, false); setBatchingEnabled(stat, false);
setBatchingEnabled(stat, true); setBatchingEnabled(stat, true);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论