how to write a OQL query comparing with number -
this oql query have written
select * myclass.session ses ses.creationtime <= 1391171576144
i following error when execute query
java.lang.numberformatexception: input string: "1391171576144" @ java.lang.numberformatexception.forinputstring(numberformatexception.java:65) @ java.lang.integer.parseint(integer.java:495) @ java.lang.integer.parseint(integer.java:527)
the attribute value
type|name |value
long|creationtime|1391172135198
you need add l @ end; otherwise, 1391171576144 interpreted integer:
select * myclass.session ses ses.creationtime <= 1391171576144l
Comments
Post a Comment