[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3690) Sybase - FumTest.testCompositeKeyPathExpressions() fails due to subquery with more than one column in select list

Stephen Hookings (JIRA) noreply at atlassian.com
Mon Sep 27 05:51:57 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38512#action_38512 ] 

Stephen Hookings commented on HHH-3690:
---------------------------------------

I am pushing to get ... where exists (select c1, c2, ... cn from t1) supported by our parser in a later ASE. Seems counter intuitive to allow * but not explicitly named columns, Since effectively the exists is about cardinaility only, adding columns cannot destroy a row (at least not aware how to in Sybase T-SQL) so if * is allowed, so ought c1, c2, .... 

> Sybase - FumTest.testCompositeKeyPathExpressions() fails due to subquery with more than one column in select list
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-3690
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3690
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>            Reporter: Gail Badner
>
> Sybase only allows one column in a subquery select list. The only exception is that a subquery in an EXISTS() predicate can have '*' as the select list. This  is documented at:
> http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc32300.1502/html/sqlug/sqlug181.htm
> FumTest.testCompositeKeyPathExpressions() fails with "SybSQLException: Incorrect syntax near ','."
> The HQL that fails is: "from Fum fum1 where exists elements(fum1.friends)". It fails becuase the elements have a composite ID.
> The fix described in HHH-3032 should fix this issue since the subquery is used in an EXISTS() predicate..

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