Skip to content

Commit

Permalink
Fix type info access in Any database driver
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed May 1, 2022
1 parent 826e63f commit a2845c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqlx-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@ impl Error {
pub(crate) fn mismatched_types<DB: Database, T: Type<DB>>(ty: &DB::TypeInfo) -> BoxDynError {
// TODO: `#name` only produces `TINYINT` but perhaps we want to show `TINYINT(1)`
format!(
"mismatched types; Rust type `{}` (as SQL type `{}`) is not compatible with SQL type `{}`",
"mismatched types; Rust type `{}` is not compatible with SQL type `{}`",
type_name::<T>(),
T::type_info().name(),
ty.name()
)
.into()
Expand Down

0 comments on commit a2845c7

Please sign in to comment.