mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-03 07:45:30 +00:00
fix(macros) - use re-exported Error type from sqlx crate
This commit is contained in:
parent
93cab2a197
commit
51aeee20da
@ -84,7 +84,7 @@ fn expand_derive_from_row_struct(
|
|||||||
if attributes.default {
|
if attributes.default {
|
||||||
Some(
|
Some(
|
||||||
parse_quote!(let #id: #ty = row.try_get(#id_s).or_else(|e| match e {
|
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())
|
Ok(Default::default())
|
||||||
},
|
},
|
||||||
e => Err(e)
|
e => Err(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user