You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jakob Braeuchi <jb...@gmx.ch> on 2003/10/12 18:51:55 UTC

Help: ANTLR guru needed !

hi all,

while playing with oql i realized that we do not support functions :( !

         OQLQuery query = odmg.newOQLQuery();
         query.create("select anArticle from " +
                 Article.class.getName() +
                 " where upper(articleName) like \"A%\" ");


the upper-function in the where clause causes antlr errors:

line 1: unexpected token: upper
line 1: unexpected token: )

i tried to fix it by adding ( and ) to the valid characters for 
Identifier. but breaks in and is_defined.

after some hours of digging in oql-ojb.g i have to admit that i'm stuck.
so please antlr-gurus have a look at it.

jakob


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org