mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-07 10:46:06 +00:00
fix Executor::describe() for MariaDB
prevent exhaustive match of `describe` structs
This commit is contained in:
committed by
Ryan Leckey
parent
4d28424af5
commit
b0a36ddd5c
@@ -128,10 +128,12 @@ impl Executor for Postgres {
|
||||
.into_iter()
|
||||
.map(|field| ResultField {
|
||||
name: if field.name == "?column?" { None } else { Some(field.name) },
|
||||
table_id: Some(field.table_id),
|
||||
table_id: if field.table_id > 0 { Some(field.table_id) } else { None },
|
||||
type_id: field.type_id,
|
||||
_backcompat: (),
|
||||
})
|
||||
.collect(),
|
||||
_backcompat: (),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user