Skip to content

Commit 5f96a2f

Browse files
committed
Fix error message about wildcard overrides
1 parent 358b80f commit 5f96a2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sqlx-macros/src/query/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,8 @@ where
302302

303303
for rust_col in &columns {
304304
if rust_col.type_.is_wildcard() {
305-
return Err(
306-
"columns may not have wildcard overrides in `query!()` or `query_as!()"
307-
.into(),
308-
);
305+
return Err("columns may not have wildcard overrides in `query[_file][_scalar][_unchecked]!()`"
306+
.into());
309307
}
310308
}
311309

0 commit comments

Comments
 (0)