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()) {
|
||||
RowDescription { descriptions } =>
|
||||
descriptions.move_iter().map(|desc| {
|
||||
ResultDescription::from_row_description_entry(desc)
|
||||
stmt::make_ResultDescription(desc)
|
||||
}).collect(),
|
||||
NoData => ~[],
|
||||
_ => unreachable!()
|
||||
|
13
src/stmt.rs
13
src/stmt.rs
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user