Check if a temporal type has date component
(&self)
| 1563 | |
| 1564 | /// Check if a temporal type has date component |
| 1565 | pub fn has_date_component(&self) -> bool { |
| 1566 | match self { |
| 1567 | TypeSpec::Date |
| 1568 | | TypeSpec::Timestamp { .. } |
| 1569 | | TypeSpec::ZonedDateTime { .. } |
| 1570 | | TypeSpec::LocalDateTime { .. } => true, |
| 1571 | TypeSpec::Time { .. } | TypeSpec::ZonedTime { .. } | TypeSpec::LocalTime { .. } => { |
| 1572 | false |
| 1573 | } |
| 1574 | _ => false, |
| 1575 | } |
| 1576 | } |
| 1577 | } |
| 1578 | |
| 1579 | /// IS predicate expression: expression IS [NOT] predicate_type [target] |