ExpressionNode op2 = operands.get(1);
ExpressionNode op3 = operands.get(2);
ExpressionNode op4 = operands.get(3);
if ((right.getType() != null) &&
(right.getType().typeClass().jdbcType() != Types.DECIMAL)) {
DataTypeDescriptor sqlType =
new DataTypeDescriptor(TypeId.DECIMAL_ID, 10, 6, true, 12);
TInstance type = queryGoal.getRulesContext()
.getTypesTranslator().typeForSQLType(sqlType);
right = new CastExpression(right, sqlType, right.getSQLsource(), type);
}
if (columnMatches(col1, op1) && columnMatches(col2, op2) &&