datetime - ColdFusion 10 ORM (Hibernate) Date Evaluation -


i'm having difficult time understanding why following hql isn't working data...

ormexecutequery('from campaign startdate < ? , enddate > ?', [utcnow(), utcnow()]) 

sample of data looks like...

startdate              enddate 2013-10-06 22:15:00.0  2013-12-31 23:15:00.0 

dump of utcnow() function return {ts '2013-10-06 23:14:15'}, i'm system calculating utc correctly.

now, if remove startdate portion of query works fine , respects enddate not work startdate in fashion.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -