| 124 | } |
| 125 | |
| 126 | std::shared_ptr<Expression> ExpressionBinder::implicitCast( |
| 127 | const std::shared_ptr<Expression>& expression, const LogicalType& targetType) { |
| 128 | if (CastFunction::hasImplicitCast(expression->dataType, targetType)) { |
| 129 | return forceCast(expression, targetType); |
| 130 | } else { |
| 131 | throw BinderException(unsupportedImplicitCastException(*expression, targetType.toString())); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | // cast without implicit checking. |
| 136 | std::shared_ptr<Expression> ExpressionBinder::forceCast( |
no test coverage detected