Skip to content

Commit

Permalink
Merge pull request #3747 from BlackDex/add-bool-type-to-multiconnection
Browse files Browse the repository at this point in the history
Add `Bool` type to MultiConnection
  • Loading branch information
weiznich authored Aug 16, 2023
2 parents a122e7b + 8d2075a commit 02a37df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions diesel_derives/src/multiconnection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ fn generate_bind_collector(connection_types: &[ConnectionVariant]) -> TokenStrea
quote::quote!(diesel::sql_types::Binary),
quote::quote!([u8]),
),
(quote::quote!(diesel::sql_types::Bool), quote::quote!(bool)),
]
.into_iter()
.map(|t| generate_to_sql_impls(t, connection_types));
Expand All @@ -606,6 +607,7 @@ fn generate_bind_collector(connection_types: &[ConnectionVariant]) -> TokenStrea
quote::quote!(diesel::sql_types::Binary),
quote::quote!(Vec<u8>),
),
(quote::quote!(diesel::sql_types::Bool), quote::quote!(bool)),
]
.into_iter()
.map(generate_from_sql_impls);
Expand Down Expand Up @@ -1296,6 +1298,7 @@ fn generate_backend(connection_types: &[ConnectionVariant]) -> TokenStream {
quote::quote!(diesel::sql_types::Date),
quote::quote!(diesel::sql_types::Time),
quote::quote!(diesel::sql_types::Timestamp),
quote::quote!(diesel::sql_types::Bool),
]
.into_iter()
.map(generate_has_sql_type_impls);
Expand Down

0 comments on commit 02a37df

Please sign in to comment.