提交 78a1de2b authored 作者: Thomas Mueller's avatar Thomas Mueller

EXPLAIN: The query plan now contains ".tableScan" if a table scan is used.

上级 63093d87
...@@ -514,4 +514,8 @@ public class PageDataIndex extends PageIndex { ...@@ -514,4 +514,8 @@ public class PageDataIndex extends PageIndex {
} }
} }
public String getPlanSQL() {
return table.getSQL() + ".tableScan";
}
} }
...@@ -228,4 +228,8 @@ public class ScanIndex extends BaseIndex { ...@@ -228,4 +228,8 @@ public class ScanIndex extends BaseIndex {
return rowCount; return rowCount;
} }
public String getPlanSQL() {
return table.getSQL() + ".tableScan";
}
} }
...@@ -529,7 +529,7 @@ public class TestPreparedStatement extends TestBase { ...@@ -529,7 +529,7 @@ public class TestPreparedStatement extends TestBase {
ResultSet rs = prep.executeQuery(); ResultSet rs = prep.executeQuery();
rs.next(); rs.next();
String plan = rs.getString(1); String plan = rs.getString(1);
assertTrue(plan.indexOf("_DATA") >= 0); assertTrue(plan.indexOf(".tableScan") >= 0);
rs = prepExe.executeQuery(); rs = prepExe.executeQuery();
rs.next(); rs.next();
assertEquals("World", rs.getString(2)); assertEquals("World", rs.getString(2));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论