Fix more breakage similar to rust-lang/rust#36340 and 11f118643
Fixes #222.
This commit is contained in:
parent
b0ddb4d0f9
commit
f063b97571
@ -791,7 +791,7 @@ impl InnerConnection {
|
||||
let mut fields = vec![];
|
||||
for row in rows {
|
||||
let (name, type_) = {
|
||||
let get_raw = |i| row.get(i).and_then(|r| r.as_ref().map(|r| &**r));
|
||||
let get_raw = |i: usize| row.get(i).and_then(|r| r.as_ref().map(|r| &**r));
|
||||
let ctx = SessionInfo::new(&self.parameters);
|
||||
let name = try!(String::from_sql_nullable(&Type::Name, get_raw(0), &ctx)
|
||||
.map_err(Error::Conversion));
|
||||
|
Loading…
Reference in New Issue
Block a user