mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-25 09:39:58 +00:00
Fix error message about wildcard overrides (#1276)
Co-authored-by: Austin Bonander <austin@launchbadge.com>
This commit is contained in:
parent
358b80f62e
commit
e33e4510fc
@ -303,7 +303,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!()"
|
||||
"wildcard overrides are only allowed with an explicit record type, \
|
||||
e.g. `query_as!()` and its variants"
|
||||
.into(),
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user