HHH-18046 Fix Hana issue with binary arithmetic parameter operand and skip test for cockroach
This commit is contained in:
parent
9ba0dd7af0
commit
19c2c40f82
|
@ -63,6 +63,11 @@ public class HANASqlAstTranslator<T extends JdbcOperation> extends AbstractSqlAs
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void visitArithmeticOperand(Expression expression) {
|
||||
render( expression, SqlAstNodeRenderingMode.NO_PLAIN_PARAMETER );
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private boolean isHanaCloud() {
|
||||
return ( (AbstractHANADialect) getDialect() ).isCloud();
|
||||
|
|
|
@ -8,12 +8,14 @@ package org.hibernate.orm.test.hql;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.dialect.CockroachDialect;
|
||||
import org.hibernate.query.criteria.HibernateCriteriaBuilder;
|
||||
import org.hibernate.query.criteria.JpaCriteriaQuery;
|
||||
import org.hibernate.query.criteria.JpaRoot;
|
||||
|
||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||
import org.hibernate.testing.orm.junit.JiraKey;
|
||||
import org.hibernate.testing.orm.junit.SkipForDialect;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
@ -83,6 +85,7 @@ public class InferenceTest extends BaseCoreFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
@JiraKey("HHH-18046")
|
||||
@SkipForDialect(dialectClass = CockroachDialect.class, reason = "See https://github.com/cockroachdb/cockroach/issues/123659")
|
||||
public void testBinaryArithmeticParameterInference() {
|
||||
doInHibernate( this::sessionFactory, session -> {
|
||||
HibernateCriteriaBuilder cb = session.getCriteriaBuilder();
|
||||
|
|
Loading…
Reference in New Issue