Update of /cvsroot/hibernate/Hibernate3/src/org/hibernate/hql/ast/tree
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13121/src/org/hibernate/hql/ast/tree
Modified Files:
SelectClause.java
Log Message:
HHH-1411 & HHH-1412 : in-memory application of DISTINCT and firstRow/maxRows in conjunction with collection fetches
Index: SelectClause.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- SelectClause.java 23 Jan 2006 16:40:51 -0000 1.3
+++ SelectClause.java 16 Feb 2006 22:51:00 -0000 1.4
@@ -43,6 +43,10 @@
return scalarSelect;
}
+ public boolean isDistinct() {
+ return getFirstChild() != null && getFirstChild().getType() == SqlTokenTypes.DISTINCT;
+ }
+
/**
* FromElements which need to be accounted for in the load phase (either for return or for fetch).
*
|