Skip to content

Commit fa189e7

Browse files
abonanderjplatte
authored andcommitted
Fix error message about wildcard overrides
1 parent 358b80f commit fa189e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlx-macros/src/query/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ where
303303
for rust_col in &columns {
304304
if rust_col.type_.is_wildcard() {
305305
return Err(
306-
"columns may not have wildcard overrides in `query!()` or `query_as!()"
306+
"wildcard overrides are only allowed with an explicit record type, \
307+
e.g. `query_as!()` and its variants"
307308
.into(),
308309
);
309310
}

0 commit comments

Comments
 (0)