MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / implicitCast

Method implicitCast

src/binder/expression_binder.cpp:126–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126std::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.
136std::shared_ptr<Expression> ExpressionBinder::forceCast(

Callers 3

evaluateLiteralMethod · 0.80
bindUnwindClauseMethod · 0.80

Calls 2

toStringMethod · 0.45

Tested by

no test coverage detected