HHH-5932 Add test case.
This commit is contained in:
parent
c2ece0108e
commit
f52b841c5c
|
@ -33,7 +33,9 @@ import org.hibernate.engine.spi.SessionImplementor;
|
|||
import org.hibernate.persister.collection.CollectionPersister;
|
||||
import org.hibernate.transform.DistinctRootEntityResultTransformer;
|
||||
|
||||
import org.hibernate.testing.FailureExpected;
|
||||
import org.hibernate.testing.SkipForDialect;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -458,6 +460,16 @@ public class DynamicFilterTest extends BaseNonConfigCoreFunctionalTestCase {
|
|||
testData.release();
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestForIssue( jiraKey = "HHH-5932" )
|
||||
@FailureExpected( jiraKey = "HHH-5932" )
|
||||
public void testHqlQueryWithColons() {
|
||||
final Session session = openSession();
|
||||
session.enableFilter( "region" ).setParameter( "region", "PACA" );
|
||||
session.createQuery( "from Salesperson p where p.name = ':hibernate'" ).list();
|
||||
session.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFilterApplicationOnHqlQueryWithImplicitSubqueryContainingPositionalParameter() {
|
||||
TestData testData = new TestData();
|
||||
|
|
Loading…
Reference in New Issue