public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { // check that the two operands are of same type. return OperandTypes.SAME_SAME.checkOperandTypes( callBinding, throwOnFailure) && super.checkOperandTypes(callBinding, throwOnFailure); } }
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { // check that the two operands are of same type. return SqlTypeStrategies.otcSameX2.checkOperandTypes( callBinding, throwOnFailure) && super.checkOperandTypes(callBinding, throwOnFailure); } }
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { if (!super.checkOperandTypes(callBinding, throwOnFailure)) { return false; } return SAME_SAME.checkOperandTypes(callBinding, throwOnFailure); } };
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { if (!super.checkOperandTypes(callBinding, throwOnFailure)) { return false; } if (!otcSameX2.checkOperandTypes( callBinding, throwOnFailure)) { return false; } return true; } };
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { switch (callBinding.getOperandCount()) { case 2: if (!OperandTypes.STRING_SAME_SAME.checkOperandTypes( callBinding, throwOnFailure)) { return false; } break; case 3: if (!OperandTypes.STRING_SAME_SAME_SAME.checkOperandTypes( callBinding, throwOnFailure)) { return false; } // calc implementation should // enforce the escape character length to be 1 break; default: throw Util.newInternal( "unexpected number of args to " + callBinding.getCall()); } return SqlTypeUtil.isCharTypeComparable( callBinding, callBinding.getCall().getOperandList(), throwOnFailure); }
if (!SqlTypeStrategies.otcStringSameX2.checkOperandTypes( callBinding, throwOnFailure)) if (!SqlTypeStrategies.otcStringSameX3.checkOperandTypes( callBinding, throwOnFailure))
if (!rule.checkOperandTypes(callBinding, false)) { typeErrorCount++;
if (!rule.checkOperandTypes(callBinding, false)) { typeErrorCount++; if (composition == Composition.AND) {