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 reserved characters by ANTLN that should be
excluded.
/4
Joshua Davis wrote:
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 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=6595alloc_id=14396op=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_ide95alloc_id396op=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_ide95alloc_id396op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel