Function
date_part_time_numeric
(units: &str, b: chrono::NaiveTime)
Source from the content-addressed store, hash-verified
| 1945 | introduces_nulls = false |
| 1946 | )] |
| 1947 | fn date_part_time_numeric(units: &str, b: chrono::NaiveTime) -> Result<Numeric, EvalError> { |
| 1948 | match units.parse() { |
| 1949 | Ok(units) => Ok(date_part_time_inner::<Numeric>(units, b)?), |
| 1950 | Err(_) => Err(EvalError::UnknownUnits(units.into())), |
| 1951 | } |
| 1952 | } |
| 1953 | |
| 1954 | #[sqlfunc( |
| 1955 | sqlname = "date_partt", |
Callers
nothing calls this directly
Tested by
no test coverage detected