Fix access by name for collections with offset
This commit is contained in:
parent
ee203ea4ad
commit
84d5f87eea
1 changed files with 2 additions and 1 deletions
|
@ -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(*)" : "*";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue