fix(macros) - use re-exported Error type from sqlx crate

This commit is contained in:
rumblefrog 2020-07-12 11:14:14 -04:00 committed by Ryan Leckey
parent 93cab2a197
commit 51aeee20da

View file

@ -84,7 +84,7 @@ fn expand_derive_from_row_struct(
if attributes.default {
Some(
parse_quote!(let #id: #ty = row.try_get(#id_s).or_else(|e| match e {
sqlx_core::error::Error::ColumnNotFound(_) => {
sqlx::Error::ColumnNotFound(_) => {
Ok(Default::default())
},
e => Err(e)