Fix access by name for collections with offset

This commit is contained in:
hns 2009-09-15 15:25:08 +00:00
parent ee203ea4ad
commit 84d5f87eea

View file

@ -971,7 +971,8 @@ public final class Relation {
q.append(" ORDER BY ").append(order);
}
if (maxSize > 0) {
// apply limit and offset, but not if the query is for a single object
if (maxSize > 0 && kstr == null) {
if (otherType.isOracle()) {
// see http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
String selectItem = isCount ? "count(*)" : "*";