HHH-13571 : Test failures due to cross joined table out of scope of a subsequent JOIN on Sybase

(cherry picked from commit 9988d677b9)
This commit is contained in:
Gail Badner 2019-08-13 23:16:45 -07:00
parent 9b1c21444c
commit eb85932c42
1 changed files with 3 additions and 0 deletions

View File

@ -16,9 +16,11 @@ import javax.persistence.ManyToOne;
import javax.persistence.Table; import javax.persistence.Table;
import org.hibernate.annotations.NaturalId; import org.hibernate.annotations.NaturalId;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.engine.query.spi.HQLQueryPlan; import org.hibernate.engine.query.spi.HQLQueryPlan;
import org.hibernate.hql.spi.QueryTranslator; import org.hibernate.hql.spi.QueryTranslator;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase; import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.junit.After; import org.junit.After;
@ -105,6 +107,7 @@ public class EntityJoinTest extends BaseNonConfigCoreFunctionalTestCase {
@Test @Test
@TestForIssue(jiraKey = "HHH-11337") @TestForIssue(jiraKey = "HHH-11337")
@SkipForDialect(SybaseDialect.class)
public void testLeftOuterEntityJoinsWithImplicitInnerJoinInSelectClause() { public void testLeftOuterEntityJoinsWithImplicitInnerJoinInSelectClause() {
doInHibernate( this::sessionFactory, session -> { doInHibernate( this::sessionFactory, session -> {
// this should get all financial records even if their lastUpdateBy user is null // this should get all financial records even if their lastUpdateBy user is null