Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Apr 29, 2024
1 parent 0fa3823 commit bef3302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/builder_context/filter_types_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl FilterTypesMapHelper {
ColumnType::TimestampWithTimeZone => Some(FilterType::Text),
ColumnType::Time => Some(FilterType::Text),
ColumnType::Date => Some(FilterType::Text),
ColumnType::Year(_) => Some(FilterType::Integer),
ColumnType::Year => Some(FilterType::Integer),
ColumnType::Interval(_, _) => Some(FilterType::Text),
ColumnType::Binary(_) => None,
ColumnType::VarBinary(_) => None,
Expand Down
4 changes: 2 additions & 2 deletions src/builder_context/types_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl TypesMapHelper {
#[cfg(feature = "with-chrono")]
TimeLibrary::Chrono => ConvertedType::ChronoDate,
},
ColumnType::Year(_) => ConvertedType::Integer,
ColumnType::Year => ConvertedType::Integer,
ColumnType::Interval(_, _) => ConvertedType::String,
ColumnType::Binary(_)
| ColumnType::VarBinary(_)
Expand Down Expand Up @@ -264,7 +264,7 @@ impl TypesMapHelper {
| ColumnType::TimestampWithTimeZone
| ColumnType::Time
| ColumnType::Date => Some(TypeRef::named(TypeRef::STRING)),
ColumnType::Year(_) => Some(TypeRef::named(TypeRef::INT)),
ColumnType::Year => Some(TypeRef::named(TypeRef::INT)),
ColumnType::Interval(_, _) => Some(TypeRef::named(TypeRef::STRING)),
ColumnType::Binary(_)
| ColumnType::VarBinary(_)
Expand Down

0 comments on commit bef3302

Please sign in to comment.