Open marcpa00 opened 11 years ago
I'll look into it.
Note : I tried both with jdbc/hibernate logging enabled and disabled, but outcome is the same.
Odd. I have just tried this and it's working fine with Grails 2.2.3. I simply can't reproduce. I assume you're running against H2? I wonder if the version of the JDK is having an impact too. I've just tried with Java 6.
Same problem with grails 3.0.2, although I have a sort and when I remove that it gets the right amount.
When using
def users = User.list(sort: 'loginId', order: 'asc', max: 5, fetch: [posts: 'eager'])
the result list has 3 items whereasdef users = User.list(sort: 'loginId', order: 'asc', max: 5)
has 5.I wonder if this is a bug in grails (version 2.2.3) ?
Here is a spec that should pass but where the tests using the
fetch
parameter are failing: