mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
make column reuse blob/text fields
This commit is contained in:
parent
78e9f1c09a
commit
5b7fcd27bd
10 changed files with 93 additions and 74 deletions
|
@ -350,7 +350,7 @@ fn py_to_owned_value(obj: &Bound<PyAny>) -> Result<limbo_core::OwnedValue> {
|
|||
} else if let Ok(string) = obj.extract::<String>() {
|
||||
return Ok(OwnedValue::Text(Text::from_str(string)));
|
||||
} else if let Ok(bytes) = obj.downcast::<PyBytes>() {
|
||||
return Ok(OwnedValue::Blob(Rc::new(bytes.as_bytes().to_vec())));
|
||||
return Ok(OwnedValue::Blob(bytes.as_bytes().to_vec()));
|
||||
} else {
|
||||
return Err(PyErr::new::<ProgrammingError, _>(format!(
|
||||
"Unsupported Python type: {}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue