Skip to content

Commit

Permalink
Fixed Uuid's db type
Browse files Browse the repository at this point in the history
  • Loading branch information
gammelalf committed Sep 11, 2023
1 parent 62cc4b6 commit bc0efde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/types/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ use crate::conditions::Value;
use crate::internal::hmr::db_type;
use crate::{impl_AsDbType, impl_FieldEq};

impl_AsDbType!(uuid::Uuid, db_type::Binary, Value::Uuid);
impl_AsDbType!(uuid::Uuid, db_type::Uuid, Value::Uuid);
impl_FieldEq!(impl<'rhs> FieldEq<'rhs, Uuid> for Uuid { Value::Uuid });
impl_FieldEq!(impl<'rhs> FieldEq<'rhs, Option<Uuid>> for Option<Uuid> { |option: Option<_>| option.map(Value::Uuid).unwrap_or(Value::Null(NullType::Uuid)) });

0 comments on commit bc0efde

Please sign in to comment.