Skip to content

Commit

Permalink
Fix error message about wildcard overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Jun 9, 2021
1 parent 358b80f commit 5f96a2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sqlx-macros/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,8 @@ where

for rust_col in &columns {
if rust_col.type_.is_wildcard() {
return Err(
"columns may not have wildcard overrides in `query!()` or `query_as!()"
.into(),
);
return Err("columns may not have wildcard overrides in `query[_file][_scalar][_unchecked]!()`"
.into());
}
}

Expand Down

0 comments on commit 5f96a2f

Please sign in to comment.