[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2461) Query can't handle selecting the result of comparison operators

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Mar 2 02:32:32 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2461?page=all ]
     
Steve Ebersole closed HHH-2461:
-------------------------------

    Resolution: Rejected

user, documentation; documentation, user...

> Query can't handle selecting the result of comparison operators
> ---------------------------------------------------------------
>
>          Key: HHH-2461
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2461
>      Project: Hibernate3
>         Type: Bug

>   Components: query-hql
>     Versions: 3.2.2
>  Environment: Mysql, java 1.5
>     Reporter: tomas

>
>
> The following query would run in mysql:
> select ( 1 < 2 ) 
> from MyTable t;
> but gives the following error when I use the Query( not the SQL Query ):
> 09:21:52,218 ERROR PARSER: <AST>:1:10: unexpected AST node: <
> org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: < near line 1, column 10 [select 1 < 2  from com.myCompany.MyTable t ]
> 	at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
> 	at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
> 	at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
> 	at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:235)
> 	at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
> 	at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
> 	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
> 	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> 	at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
> 	at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
> 	at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
> 	at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> Thanks a lot

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list