db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Help: ANTLR guru needed !
Date Sun, 12 Oct 2003 16:51:55 GMT
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


Mime
View raw message