fix Executor::describe() for MariaDB

prevent exhaustive match of `describe` structs
This commit is contained in:
Austin Bonander
2019-12-04 14:37:56 -08:00
committed by Ryan Leckey
parent 4d28424af5
commit b0a36ddd5c
4 changed files with 85 additions and 46 deletions

View File

@@ -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: (),
})
})
}