提交 495916ff authored 作者: Thomas Mueller's avatar Thomas Mueller

The data index is no longer called 'scan' because sometimes it's a direct lookup.

上级 a75bacaa
...@@ -50,9 +50,7 @@ public class PageDataIndex extends PageIndex implements RowIndex { ...@@ -50,9 +50,7 @@ public class PageDataIndex extends PageIndex implements RowIndex {
private int memorySizePerPage; private int memorySizePerPage;
public PageDataIndex(TableData table, int id, IndexColumn[] columns, IndexType indexType, int headPos, Session session) throws SQLException { public PageDataIndex(TableData table, int id, IndexColumn[] columns, IndexType indexType, int headPos, Session session) throws SQLException {
int test; initBaseIndex(table, id, table.getName() + "_DATA", columns, indexType);
// initBaseIndex(table, id, table.getName() + "_DATA", columns, indexType);
initBaseIndex(table, id, table.getName() + "_TABLE_SCAN", columns, indexType);
// trace = database.getTrace(Trace.PAGE_STORE + "_di"); // trace = database.getTrace(Trace.PAGE_STORE + "_di");
// trace.setLevel(TraceSystem.DEBUG); // trace.setLevel(TraceSystem.DEBUG);
......
...@@ -511,7 +511,7 @@ public class TestPreparedStatement extends TestBase { ...@@ -511,7 +511,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("TABLE_SCAN") >= 0); assertTrue(plan.indexOf("_DATA") >= 0);
rs = prepExe.executeQuery(); rs = prepExe.executeQuery();
rs.next(); rs.next();
assertEquals("World", rs.getString(2)); assertEquals("World", rs.getString(2));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论