Re: [Hibernate] session.createQuery ERROR

2005-03-17 Thread Tobias Järlund
I think that you are correct. I tried this with my patched version of Hibernate (see HHH-244 or my earlier email), and it seemed to work just fine. To allow for the full Unicode BMP, the charVocabulary line could be something like charVocabulary='\u' .. '\u'; but there might be some res

Re: [Hibernate] Issues with the antlr parser

2005-03-17 Thread Tobias Järlund
Ok, I opened a Jira issue with some actual information about the problem, with the AST trees attached. http://opensource.atlassian.com/projects/hibernate/browse/HHH-242 I don't have time to create a proper test case at the moment, sorry about that. /Tobias Gavin King wrote: What *particular* qu

RE: [Hibernate] session.createQuery ERROR

2005-03-17 Thread Joshua Davis
The lexer rules for quoted strings look fine, so I think the problem might be this suspicious looking option on the lexer on line 643 in hql.g: charVocabulary='\u'..'\u007F'; // allow ascii I bet if we changed this to allow other characters it would work. Most of the ANTLR options we

[Hibernate] session.createQuery ERROR

2005-03-17 Thread Glauber Andrade
Hibernate throws a QueryException when I use letters like "á, é, ..." List result = sess.createQuery("FROM Bem b WHERE b.plqta ='máx' AND b.situo=2 ORDER BY b.plqta").list(); org.hibernate.QueryException: expecting ''', found 'á' [FROM com.maxiti.data.Bem b WHERE b.plqta ='máx' AND b.situo=2

Re: [Hibernate] antlr class.forname

2005-03-17 Thread Max Rydahl Andersen
For the "fun" of it I have patched and built a antlr-2.7.5H3.jar which has proper classloading. It seems to work ok with the unit tests etc., Does anyone have a weblogic install and could try it out ? you must probably replace their antlr.jar with this jar. see http://opensource.atlassian.com/pr

Re: [Hibernate] Issues with the antlr parser

2005-03-17 Thread Christian Bauer
Tobias Järlund wrote: 2. From what I can tell the older syntax (from foo in class bar.Foo) is not supported. If this is by design, I think it would be a good idea to mention this in the upgrade notes, and update the documentation (it is still used in at least two places). Done -- Christian Bauer

[Hibernate] Issues with the antlr parser

2005-03-17 Thread Tobias Järlund
Hello! I'm having a few issues with the new antlr parser. 1. In the grammar, IDENT is restricted to ( 'a' .. 'z' | '_' ) ( 'a' .. 'z' | '0' .. '9' | '_' | '$' )*, which I believe is too limited. Since we are dealing with Java, this should be expanded to the full range of valid Java identifiers.