Sorting is not work for double Field Type

16 views
Skip to first unread message

Abhijit Shivathare

unread,
Mar 16, 2017, 11:20:46 AM3/16/17
to OrientDB
I have store the timestamp in onDt column as 

var d = new Date();
var timestamp = Math.floor(d.getTime() / 1000);


select query use order by on onDt column. Which give me wrong result 


Roberto Franchini

unread,
Mar 16, 2017, 11:24:48 AM3/16/17
to orient-...@googlegroups.com
Is onDt column defined as a DATE or DATETIME in the database schema? 
--
Best regards,
 
Roberto Franchini

OrientDB LTD  -  http://orientdb.com
Reply all
Reply to author
Forward
0 new messages