Details
-
Type:
Sub-task
-
Status:
In Progress
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 2.3-M2
-
Component/s: None
-
Labels:None
-
Environment:2.0.0.BUILD-SNAPSHOT
Description
Use the sample app from GRAILS-8344 as a base again. This time I'm having issues with the queries:
def authors = Book.where { author.age > year(publishDate) }
,
def now = new Date()
def authors = Book.where { author.age > year(now) }
and
def now = new Date()
def authors = Author.where { books.size() > year(now) }
I would only class the error from the first example as an actual bug, but the others could do with more meaningful error messages.
I'm also getting an odd message from this code:
... def authors = Author.where { books.size() > process(age) } ... private process(arg) { return arg }Something like: