make column reuse blob/text fields

This commit is contained in:
Pere Diaz Bou
2025-03-27 14:33:50 +01:00
parent 78e9f1c09a
commit 5b7fcd27bd
10 changed files with 93 additions and 74 deletions

View File

@@ -7,7 +7,6 @@ use jni::sys::{jdouble, jint, jlong};
use jni::JNIEnv;
use limbo_core::{OwnedValue, Statement, StepResult};
use std::num::NonZero;
use std::rc::Rc;
pub const STEP_RESULT_ID_ROW: i32 = 10;
#[allow(dead_code)]
@@ -264,7 +263,7 @@ pub extern "system" fn Java_tech_turso_core_LimboStatement_bindBlob<'local>(
stmt.stmt.bind_at(
NonZero::new(position as usize).unwrap(),
OwnedValue::Blob(Rc::new(blob)),
OwnedValue::Blob(blob),
);
SQLITE_OK
}