提交 ed3e1b46 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved MVStore tests.

上级 c8814abe
...@@ -38,10 +38,6 @@ public class MVDelegateIndex extends BaseIndex { ...@@ -38,10 +38,6 @@ public class MVDelegateIndex extends BaseIndex {
// nothing to do // nothing to do
} }
public boolean canFindNext() {
return false;
}
public boolean canGetFirstOrLast() { public boolean canGetFirstOrLast() {
return true; return true;
} }
...@@ -62,10 +58,6 @@ public class MVDelegateIndex extends BaseIndex { ...@@ -62,10 +58,6 @@ public class MVDelegateIndex extends BaseIndex {
return mainIndex.findFirstOrLast(session, first); return mainIndex.findFirstOrLast(session, first);
} }
public Cursor findNext(Session session, SearchRow higherThan, SearchRow last) {
throw DbException.throwInternalError();
}
public int getColumnIndex(Column col) { public int getColumnIndex(Column col) {
if (col.getColumnId() == mainIndex.getMainIndexColumn()) { if (col.getColumnId() == mainIndex.getMainIndexColumn()) {
return 0; return 0;
...@@ -87,8 +79,6 @@ public class MVDelegateIndex extends BaseIndex { ...@@ -87,8 +79,6 @@ public class MVDelegateIndex extends BaseIndex {
public void remove(Session session) { public void remove(Session session) {
mainIndex.setMainIndexColumn(-1); mainIndex.setMainIndexColumn(-1);
// TODO remove map?
// session.getDatabase().getPageStore().removeMeta(this, session);
} }
public void truncate(Session session) { public void truncate(Session session) {
......
...@@ -204,6 +204,14 @@ public class TestMVTableEngine extends TestBase { ...@@ -204,6 +204,14 @@ public class TestMVTableEngine extends TestBase {
stat = conn.createStatement(); stat = conn.createStatement();
} }
stat.execute("select * from test"); stat.execute("select * from test");
rs = stat.executeQuery("script");
int count = 0;
while (rs.next()) {
count++;
}
assertTrue(count < 10);
stat.execute("drop table test"); stat.execute("drop table test");
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论