Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydevnull committed Apr 10, 2017
1 parent 484546e commit 32b9e1a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/frame/frame_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,20 @@ impl ColSpec {
(0..column_count)
.map(|_| {
let mut ksname: Option<CString> = None;
let mut tablename: Option<CString> = None;
if !with_globale_table_spec {
// XXX unwrap
ksname = Some(CString::from_cursor(&mut cursor).unwrap());
tablename = Some(CString::from_cursor(&mut cursor).unwrap());
}
// let mut tablename: Option<CString> = None;
// if !with_globale_table_spec {
// // XXX unwrap
// ksname = Some(CString::from_cursor(&mut cursor).unwrap());
// tablename = Some(CString::from_cursor(&mut cursor).unwrap());
// }

let tablename = if !with_globale_table_spec {

Some(CString::from_cursor(&mut cursor).unwrap())
} else {
None
};

// XXX unwrap
let name = CString::from_cursor(&mut cursor).unwrap();
let col_type = ColTypeOption::from_cursor(&mut cursor).unwrap();
Expand Down

0 comments on commit 32b9e1a

Please sign in to comment.