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

Method cast

src/binder/expression/variable_expression.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace binder {
10
11void 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

Callers

nothing calls this directly

Calls 3

containsAnyMethod · 0.45
toStringMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected