From aab4e16ed3a2278920e7b0aa6eb5dac040a22003 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Mon, 14 Nov 2022 16:42:23 +0530 Subject: [PATCH] debug read_usize --- src/record.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/record.rs b/src/record.rs index 9b19be3..d1f001d 100644 --- a/src/record.rs +++ b/src/record.rs @@ -68,6 +68,8 @@ impl<'a> ColumnValue<'a> { ColumnValue::U16(v) => *v as u32, ColumnValue::U24(v) => *v as u32, ColumnValue::U32(v) => *v as u32, + ColumnValue::True => 1, + ColumnValue::False => 0, v => { println!("{:?}", v); @@ -84,6 +86,8 @@ impl<'a> ColumnValue<'a> { ColumnValue::U32(v) => *v as usize, ColumnValue::U48(v) => *v as usize, ColumnValue::U64(v) => *v as usize, + ColumnValue::True => 1, + ColumnValue::False => 0, v => { println!("{:?}", v);