(&self, ecx: &ExprContext, from: &SqlScalarType, to: &SqlScalarType)
| 1364 | |
| 1365 | impl PolymorphicCompatClass { |
| 1366 | fn compatible(&self, ecx: &ExprContext, from: &SqlScalarType, to: &SqlScalarType) -> bool { |
| 1367 | use PolymorphicCompatClass::*; |
| 1368 | match self { |
| 1369 | StructuralEq => from.structural_eq(to), |
| 1370 | Any => from.base_eq(to), |
| 1371 | _ => typeconv::can_cast(ecx, CastContext::Implicit, from, to), |
| 1372 | } |
| 1373 | } |
| 1374 | } |
| 1375 | |
| 1376 | /// Represents a solution to a set of polymorphic constraints, expressed as the |
no test coverage detected