diff --git a/src/main.rs b/src/main.rs index 493b59a..80319dd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -276,6 +276,8 @@ fn parse_page<'a>( let record = parse_record(&stream[offset + 4..offset + 4 + payload_size], 2); let record = record.unwrap(); + println!("{:?}", record); + Some( parse_page( database, diff --git a/src/record.rs b/src/record.rs index 83b9e3c..9b19be3 100644 --- a/src/record.rs +++ b/src/record.rs @@ -68,7 +68,11 @@ impl<'a> ColumnValue<'a> { ColumnValue::U16(v) => *v as u32, ColumnValue::U24(v) => *v as u32, ColumnValue::U32(v) => *v as u32, - _ => unreachable!(), + v => { + println!("{:?}", v); + + unreachable!() + } } } @@ -80,7 +84,11 @@ impl<'a> ColumnValue<'a> { ColumnValue::U32(v) => *v as usize, ColumnValue::U48(v) => *v as usize, ColumnValue::U64(v) => *v as usize, - _ => unreachable!(), + v => { + println!("{:?}", v); + + unreachable!() + } } } }