surinder-insonix / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

date greater than always returns all the data #232

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create an entity with date filed
2.Run Query "Select  from "+Entity.class.getName()+" where dateFiled>="+new 
Date().getTime();
3.Always return all the rows, no matter what the date is

What is the expected output? What do you see instead?
It should give only rows after the date but it returns all rows always

What version of the product are you using? On what operating system?
AppEngine 1.4.3

Original issue reported on code.google.com by ramesh.v...@gmail.com on 4 May 2011 at 6:35

GoogleCodeExporter commented 8 years ago
As per the JPA spec, any comparison expression has to be of the same type as 
the field being compared. You seem to want to compare a Date field with a long 
value. Cannot reproduce with code I have here, therefore assumed to be user 
error

Original comment by googleco...@yahoo.co.uk on 15 Jul 2011 at 4:32