mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +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 {
|
||||
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…
x
Reference in New Issue
Block a user