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='\u0000'..'\u007F'; // allow ascii I bet if we changed this to allow other characters it would work. Most of the ANTLR options were copied from an SQL ANTLR grammar when I first created the HQL grammar, so it makes sense that some of them might be a little off. :) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Glauber Andrade > Sent: Thursday, March 17, 2005 7:24 AM > To: hibernate-devel@lists.sourceforge.net > Subject: [Hibernate] session.createQuery ERROR > > > 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 > ORDER BY b.plqta] > > WHAT IS WRONG ? > > In Hibernate 2.1.7, using session.find, this error does not occur. > > Thanks, > > Glauber Andrade > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. Discover which products truly live up to the > hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > hibernate-devel mailing list hibernate-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel