| 9 | namespace binder { |
| 10 | |
| 11 | void VariableExpression::cast(const LogicalType& type) { |
| 12 | if (!dataType.containsAny()) { |
| 13 | // LCOV_EXCL_START |
| 14 | throw BinderException( |
| 15 | std::format("Cannot change variable expression data type from {} to {}.", |
| 16 | dataType.toString(), type.toString())); |
| 17 | // LCOV_EXCL_STOP |
| 18 | } |
| 19 | dataType = type.copy(); |
| 20 | } |
| 21 | |
| 22 | } // namespace binder |
| 23 | } // namespace lbug |
nothing calls this directly
no test coverage detected