This error message is hard to read because its using internal constant
values rather then keywords. It would be nice if it looked up the
keywords but you can do it yourself by looking at TokenTypes.java
public interface TokenTypes {
int END_OF_QUERY = 0;
int KEYWORD_SELECT = 1;
int IDENTIFIER = 2;
int KEYWORD_AS = 3;
int COLON = 4;
int KEYWORD_FROM = 5;
....
josh
> I am trying to do something similar:
>
> SELECT a Asset a WHERE a.siteId.id IN LIST( 1,2366)
>
> But I'm getting this exception:
>
>
> org.exolab.castor.jdo.oql.OQLSyntaxException: An incorrect token type was
> found near com (2, need 5
> at org.exolab.castor.jdo.oql.Parser.match(Parser.java:144)
> at org.exolab.castor.jdo.oql.Parser.fromClause(Parser.java:214)
> at org.exolab.castor.jdo.oql.Parser.getParseTree(Parser.java:92)
> at
> org.exolab.castor.jdo.engine.OQLQueryImpl.create(OQLQueryImpl.java:268)
> at
> org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(DatabaseImpl.java:439)
>
> Can anyone help me out here?
>
> Thanks a bunch!
>
> Margaret Martin
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev