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* queries?
Maybe you need to submit a test case to JIRA...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Järlund
Sent: Thursday, 17 March 2005 4:45 AM
To: hibernate-devel@lists.sourceforge.net
Subject: [Hibernate] Issues with the antlr parser
3. A few of our existing queries are creating invalid sql (inserting an 
extra comma), something like ... from foo as foo1_, inner join  Is 
this a known problem? Otherwise I'll try to have a closer look at what's 
causing this.

 


---
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


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 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