From edac1ff256f9922c6ce58e5ffd9fe0624b1c96b2 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 21 Oct 2025 13:38:31 +0200 Subject: [PATCH] core/mvcc/cursor: set null flag --- core/mvcc/cursor.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/mvcc/cursor.rs b/core/mvcc/cursor.rs index 20a012cc3..1834dc986 100644 --- a/core/mvcc/cursor.rs +++ b/core/mvcc/cursor.rs @@ -18,7 +18,7 @@ enum CursorPosition { /// We have reached the end of the table. End, } -#[derive(Debug)] + pub struct MvccLazyCursor { pub db: Arc>, current_pos: RefCell, @@ -27,6 +27,7 @@ pub struct MvccLazyCursor { /// Reusable immutable record, used to allow better allocation strategy. reusable_immutable_record: RefCell>, _btree_cursor: Box, + null_flag: bool, } impl MvccLazyCursor { @@ -50,6 +51,7 @@ impl MvccLazyCursor { table_id, reusable_immutable_record: RefCell::new(None), _btree_cursor: btree_cursor, + null_flag: false, } pub fn current_row(&self) -> Result> { @@ -273,12 +275,12 @@ impl CursorTrait for MvccLazyCursor { Ok(IOResult::Done(())) } - fn set_null_flag(&mut self, _flag: bool) { - todo!() + fn set_null_flag(&mut self, flag: bool) { + self.null_flag = flag; } fn get_null_flag(&self) -> bool { - todo!() + self.null_flag } fn exists(&mut self, key: &Value) -> Result> {