public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { return checkOperandTypesImpl( callBinding, throwOnFailure, callBinding); }
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { boolean b = true; for (int i = 0; i < nOperands; ++i) { RelDataType type = callBinding.getOperandType(i); if (!checkType(callBinding, throwOnFailure, type)) { b = false; } } if (b) { b = super.checkOperandTypes(callBinding, false); if (!b && throwOnFailure) { throw callBinding.newValidationSignatureError(); } } return b; }
RelDataType[] types = new RelDataType[nOperandsActual]; final List<Integer> operandList = getOperandList(operatorBinding.getOperandCount()); for (int i : operandList) { if (operatorBinding.isOperandNull(i, false)) {
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { boolean b = true; for (int i = 0; i < nOperands; ++i) { RelDataType type = callBinding.getOperandType(i); if (!checkType(callBinding, throwOnFailure, type)) { b = false; } } if (b) { b = super.checkOperandTypes(callBinding, false); if (!b && throwOnFailure) { throw callBinding.newValidationSignatureError(); } } return b; }
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { return checkOperandTypesImpl( callBinding, throwOnFailure, callBinding); }
/** * Similar functionality to {@link #checkOperandTypes(SqlCallBinding, * boolean)}, but not part of the interface, and cannot throw an error. */ public boolean checkOperandTypes( SqlOperatorBinding callBinding) { boolean b = true; for (int i = 0; i < nOperands; ++i) { RelDataType type = callBinding.getOperandType(i); boolean result; if (type.getComparability().ordinal() < requiredComparability.ordinal()) { result = false; } else { result = true; } if (!result) { b = false; } } if (b) { b = super.checkOperandTypes(callBinding); } return b; }
/** * Similar functionality to {@link #checkOperandTypes(SqlCallBinding, * boolean)}, but not part of the interface, and cannot throw an error. */ public boolean checkOperandTypes( SqlOperatorBinding operatorBinding) { return checkOperandTypesImpl(operatorBinding, false, null); }
/** * Similar functionality to {@link #checkOperandTypes(SqlCallBinding, * boolean)}, but not part of the interface, and cannot throw an error. */ public boolean checkOperandTypes( SqlOperatorBinding callBinding) { boolean b = true; for (int i = 0; i < nOperands; ++i) { RelDataType type = callBinding.getOperandType(i); boolean result; if (type.getComparability().ordinal() < requiredComparability.ordinal()) { result = false; } else { result = true; } if (!result) { b = false; } } if (b) { b = super.checkOperandTypes(callBinding); } return b; }
/** * Similar functionality to {@link #checkOperandTypes(SqlCallBinding, * boolean)}, but not part of the interface, and cannot throw an error. */ public boolean checkOperandTypes( SqlOperatorBinding operatorBinding) { return checkOperandTypesImpl(operatorBinding, false, null); }