| 224 | } |
| 225 | |
| 226 | void ExpressionUtil::validateDataType(const Expression& expr, const LogicalType& expectedType) { |
| 227 | if (expr.getDataType() == expectedType) { |
| 228 | return; |
| 229 | } |
| 230 | throw BinderException(std::format("{} has data type {} but {} was expected.", expr.toString(), |
| 231 | expr.getDataType().toString(), expectedType.toString())); |
| 232 | } |
| 233 | |
| 234 | void ExpressionUtil::validateDataType(const Expression& expr, LogicalTypeID expectedTypeID) { |
| 235 | if (expr.getDataType().getLogicalTypeID() == expectedTypeID) { |
nothing calls this directly
no test coverage detected