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

Function alwaysCastOrder

src/common/types/types.cpp:1665–1674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1663}
1664
1665static int alwaysCastOrder(const LogicalTypeID& typeID) {
1666 switch (typeID) {
1667 case LogicalTypeID::ANY:
1668 return 0;
1669 case LogicalTypeID::STRING:
1670 return 2;
1671 default:
1672 return -1;
1673 }
1674}
1675
1676static bool canAlwaysCast(const LogicalTypeID& typeID) {
1677 switch (typeID) {

Callers 2

tryGetMaxLogicalTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected