Lower visibility on thing

This commit is contained in:
Steven Fackler 2014-02-15 19:16:12 -08:00
parent 8831466caa
commit c78266b06d
2 changed files with 6 additions and 9 deletions

View File

@ -583,7 +583,7 @@ impl InnerPostgresConnection {
let mut result_desc: ~[ResultDescription] = match if_ok_pg!(self.read_message()) {
RowDescription { descriptions } =>
descriptions.move_iter().map(|desc| {
ResultDescription::from_row_description_entry(desc)
stmt::make_ResultDescription(desc)
}).collect(),
NoData => ~[],
_ => unreachable!()

View File

@ -265,15 +265,12 @@ pub struct ResultDescription {
ty: PostgresType
}
impl ResultDescription {
pub fn from_row_description_entry(row: RowDescriptionEntry)
-> ResultDescription {
let RowDescriptionEntry { name, type_oid, .. } = row;
pub fn make_ResultDescription(row: RowDescriptionEntry) -> ResultDescription {
let RowDescriptionEntry { name, type_oid, .. } = row;
ResultDescription {
name: name,
ty: PostgresType::from_oid(type_oid)
}
ResultDescription {
name: name,
ty: PostgresType::from_oid(type_oid)
}
}