HHH-18366 Informix default parameter rendering mode for SqlSelections changed to INLINE_ALL_PARAMETERS
This commit is contained in:
parent
7a42ea2219
commit
cd02eb34b9
|
@ -15,7 +15,6 @@ import org.hibernate.sql.ast.SqlAstNodeRenderingMode;
|
|||
import org.hibernate.sql.ast.spi.AbstractSqlAstTranslator;
|
||||
import org.hibernate.sql.ast.spi.SqlSelection;
|
||||
import org.hibernate.sql.ast.tree.Statement;
|
||||
import org.hibernate.sql.ast.tree.expression.CaseSearchedExpression;
|
||||
import org.hibernate.sql.ast.tree.expression.Expression;
|
||||
import org.hibernate.sql.ast.tree.expression.Literal;
|
||||
import org.hibernate.sql.ast.tree.expression.SqlTuple;
|
||||
|
@ -66,22 +65,8 @@ public class InformixSqlAstTranslator<T extends JdbcOperation> extends AbstractS
|
|||
super.visitSqlSelections( selectClause );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void visitCaseSearchedExpression(CaseSearchedExpression caseSearchedExpression, boolean inSelect) {
|
||||
if ( inSelect ) {
|
||||
withParameterRenderingMode(
|
||||
SqlAstNodeRenderingMode.INLINE_ALL_PARAMETERS,
|
||||
() -> super.visitCaseSearchedExpression( caseSearchedExpression, inSelect )
|
||||
);
|
||||
}
|
||||
else {
|
||||
super.visitCaseSearchedExpression( caseSearchedExpression, inSelect );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void renderSelectExpression(Expression expression) {
|
||||
renderSelectExpressionWithCastedOrInlinedPlainParameters( expression );
|
||||
protected SqlAstNodeRenderingMode getSqlSelectionsDefaultParameterRenderingMode(){
|
||||
return SqlAstNodeRenderingMode.INLINE_ALL_PARAMETERS;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -5319,7 +5319,7 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen
|
|||
defaultRenderingMode = SqlAstNodeRenderingMode.DEFAULT;
|
||||
}
|
||||
else {
|
||||
defaultRenderingMode = SqlAstNodeRenderingMode.NO_PLAIN_PARAMETER;
|
||||
defaultRenderingMode = getSqlSelectionsDefaultParameterRenderingMode();
|
||||
}
|
||||
if ( needsSelectAliases || referenceStrategy == SelectItemReferenceStrategy.ALIAS && hasSelectAliasInGroupByClause() ) {
|
||||
String separator = NO_SEPARATOR;
|
||||
|
@ -5396,6 +5396,10 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen
|
|||
}
|
||||
}
|
||||
|
||||
protected SqlAstNodeRenderingMode getSqlSelectionsDefaultParameterRenderingMode() {
|
||||
return SqlAstNodeRenderingMode.NO_PLAIN_PARAMETER;
|
||||
}
|
||||
|
||||
protected void renderVirtualSelections(SelectClause selectClause) {
|
||||
renderRecursiveCteVirtualSelections( selectClause );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue