Fix error message about wildcard overrides (#1276)

Co-authored-by: Austin Bonander <austin@launchbadge.com>
This commit is contained in:
Jonas Platte 2021-06-16 00:12:49 +02:00 committed by GitHub
parent 358b80f62e
commit e33e4510fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),
);
}