提交 56299cc7 authored 作者: tledkov-gridgain's avatar tledkov-gridgain

#1405 Introduce LocalResult factory:

- remove isAnyDistinct from interface;
- add test to suite.
上级 8b2aeaa4
......@@ -39,11 +39,6 @@ public interface LocalResult extends ResultInterface, ResultTarget {
*/
public void setDistinct(int[] distinctIndexes);
/**
* @return whether this result is a distinct result
*/
public boolean isAnyDistinct();
/**
* Remove the row from the result set if it exists.
*
......
......@@ -161,7 +161,7 @@ public class LocalResultImpl implements LocalResult, ResultInterface, ResultTarg
/**
* @return whether this result is a distinct result
*/
public boolean isAnyDistinct() {
private boolean isAnyDistinct() {
return distinct || distinctIndexes != null;
}
......
......@@ -47,6 +47,7 @@ import org.h2.test.db.TestLargeBlob;
import org.h2.test.db.TestLinkedTable;
import org.h2.test.db.TestListener;
import org.h2.test.db.TestLob;
import org.h2.test.db.TestLocalResultFactory;
import org.h2.test.db.TestMemoryUsage;
import org.h2.test.db.TestMergeUsing;
import org.h2.test.db.TestMultiConn;
......@@ -795,6 +796,7 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
addTest(new TestViewDropView());
addTest(new TestSynonymForTable());
addTest(new TestColumnNamer());
addTest(new TestLocalResultFactory());
// jdbc
addTest(new TestBatchUpdates());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论