Bug 1077140
| Summary: | [HHH-9052] Unsupported SQL generated when constructors are used with predicates as arguments | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Jan Martiska <jmartisk> |
| Component: | Hibernate | Assignee: | Brett Meyer <brmeyer> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jan Martiska <jmartisk> |
| Severity: | high | Docs Contact: | Russell Dickenson <rdickens> |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | msimka, theute |
| Target Milestone: | DR6 | ||
| Target Release: | EAP 6.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-28 15:28:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1073085 | ||
|
Description
Jan Martiska
2014-03-17 10:40:23 UTC
Corrected upstream and will be a part of the ORM component upgrade in 1073085 Test-only fix -- no docs required org.hibernate.ejb.criteria.QueryBuilderTest.testMultiselectWithPredicates still fails with the same cause on Hibernate 4.2.11.Final. Sorry I didn't mention it here and not emphatically enough on the JIRA :( 16:12:19,798 DEBUG QueryTranslatorImpl:237 - HQL: select new org.hibernate.ejb.metamodel.Customer(generatedAlias0.id, generatedAlias0.name, :param0 || generatedAlias0.name, generatedAlias0.age is not null) from org.hibernate.ejb.metamodel.Customer as generatedAlias0 16:12:19,798 DEBUG QueryTranslatorImpl:238 - SQL: select customer0_.ID as col_0_0_, customer0_.NAME as col_1_0_, ?||customer0_.NAME as col_2_0_, customer0_.AGE is not null as col_3_0_ from CUSTOMER_TABLE customer0_ (...) 16:12:19,806 DEBUG SqlExceptionHelper:138 - could not extract ResultSet [n/a] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected Jan, you had only mentioned ASTParserLoadingTest.testBooleanPredicate both here and on the upstream JIRA. This is the first time QueryBuilderTest.testMultiselectWithPredicates was brought up. Since ASTParserLoadingTest was already corrected in DR6, I'd recommend resolving this BZ and opening a new one for a future EAP release, especially since it's a test-only fix. Ok then, sorry for being not verbose enough. Will create a new one. |