diff --git a/sqlx-macros-core/src/query/args.rs b/sqlx-macros-core/src/query/args.rs index ec17aeff65..788a9aadc5 100644 --- a/sqlx-macros-core/src/query/args.rs +++ b/sqlx-macros-core/src/query/args.rs @@ -66,7 +66,12 @@ pub fn quote_args( i + 1, ) } else { - format!("unsupported type {} for param #{}", param_ty, i + 1) + format!( + "no built in mapping found for type {} for param #{}; \ + a type override may be required, see documentation for details", + param_ty, + i + 1 + ) } })? .parse::() diff --git a/sqlx-macros-core/src/query/output.rs b/sqlx-macros-core/src/query/output.rs index 5e7cc5058d..3641e55db5 100644 --- a/sqlx-macros-core/src/query/output.rs +++ b/sqlx-macros-core/src/query/output.rs @@ -236,7 +236,7 @@ fn get_column_type(i: usize, column: &DB::Column) -> TokenStrea let message = if let Some(feature_gate) = ::get_feature_gate(type_info) { format!( - "optional sqlx feature `{feat}` required for type {ty} of {col}", + "SQLx feature `{feat}` required for type {ty} of {col}", ty = &type_info, feat = feature_gate, col = DisplayColumn { @@ -246,7 +246,8 @@ fn get_column_type(i: usize, column: &DB::Column) -> TokenStrea ) } else { format!( - "unsupported type {ty} of {col}", + "no built in mapping found for type {ty} of {col}; \ + a type override may be required, see documentation for details", ty = type_info, col = DisplayColumn { idx: i,