Grails - HQL Exception when comparing date field to today -


i have following hql query i'm running against h2 database:

"select count(*) event e " +    "e.org.id = :orgid , " +    "e.deleted = :deleted , " +    "e.startdate >= :startdate , " +    "lower(e.name) :name " +    "order startdate asc" 

it works fine startdate params except today. if startdate today, following exception:

org.springframework.jdbc.uncategorizedsqlexception: hibernate operation:   not execute query; uncategorized sqlexception sql  [select count(*) col_0_0_ event event0_ event0_.org_id=? ,  event0_.deleted=? , event0_.start_date>=? ,  (lower(event0_.event_name) ?) order event0_.start_date asc];   sql state [90016]; error code [90016];  column "event0_.start_date" must in group list; sql statement: 

anyone have suggestions?


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -