Lower visibility on thing
This commit is contained in:
parent
8831466caa
commit
c78266b06d
@ -583,7 +583,7 @@ impl InnerPostgresConnection {
|
|||||||
let mut result_desc: ~[ResultDescription] = match if_ok_pg!(self.read_message()) {
|
let mut result_desc: ~[ResultDescription] = match if_ok_pg!(self.read_message()) {
|
||||||
RowDescription { descriptions } =>
|
RowDescription { descriptions } =>
|
||||||
descriptions.move_iter().map(|desc| {
|
descriptions.move_iter().map(|desc| {
|
||||||
ResultDescription::from_row_description_entry(desc)
|
stmt::make_ResultDescription(desc)
|
||||||
}).collect(),
|
}).collect(),
|
||||||
NoData => ~[],
|
NoData => ~[],
|
||||||
_ => unreachable!()
|
_ => unreachable!()
|
||||||
|
13
src/stmt.rs
13
src/stmt.rs
@ -265,15 +265,12 @@ pub struct ResultDescription {
|
|||||||
ty: PostgresType
|
ty: PostgresType
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ResultDescription {
|
pub fn make_ResultDescription(row: RowDescriptionEntry) -> ResultDescription {
|
||||||
pub fn from_row_description_entry(row: RowDescriptionEntry)
|
let RowDescriptionEntry { name, type_oid, .. } = row;
|
||||||
-> ResultDescription {
|
|
||||||
let RowDescriptionEntry { name, type_oid, .. } = row;
|
|
||||||
|
|
||||||
ResultDescription {
|
ResultDescription {
|
||||||
name: name,
|
name: name,
|
||||||
ty: PostgresType::from_oid(type_oid)
|
ty: PostgresType::from_oid(type_oid)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user