aboutsummaryrefslogtreecommitdiff
path: root/database/src/table.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-17 17:23:53 +0100
committermetamuffin <metamuffin@disroot.org>2026-01-17 17:23:53 +0100
commit999249adc1120b1afa8f9d0015c31bea1980a7ee (patch)
tree24159216b9eb90449838181ab368043d6611ea07 /database/src/table.rs
parent578a171868130e5e3fcf1ecf66dec073ee796353 (diff)
downloadjellything-999249adc1120b1afa8f9d0015c31bea1980a7ee.tar
jellything-999249adc1120b1afa8f9d0015c31bea1980a7ee.tar.bz2
jellything-999249adc1120b1afa8f9d0015c31bea1980a7ee.tar.zst
fix table insert returning wrong row
Diffstat (limited to 'database/src/table.rs')
-rw-r--r--database/src/table.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/src/table.rs b/database/src/table.rs
index 2a45ddb..ace0fb8 100644
--- a/database/src/table.rs
+++ b/database/src/table.rs
@@ -49,7 +49,7 @@ impl Table {
idx.add(txn, row, ob)?;
}
- Ok(id_counter)
+ Ok(row)
}
pub fn add_index<T: Index + Clone + 'static>(&mut self, index: T) -> T {
self.indices.push(Box::new(index.clone()));