mirror of
https://github.com/launchbadge/sqlx
synced 2024-09-21 06:41:56 +00:00
fix(macros) - use re-exported Error type from sqlx crate
This commit is contained in:
parent
93cab2a197
commit
51aeee20da
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue