mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
Update sqlite3 c binding to use the new retrieval methods to access Record values.
This commit is contained in:
parent
7867e54110
commit
d807b533f7
1 changed files with 2 additions and 2 deletions
|
@ -442,7 +442,7 @@ pub unsafe extern "C" fn sqlite3_expanded_sql(_stmt: *mut sqlite3_stmt) -> *mut
|
|||
pub unsafe extern "C" fn sqlite3_data_count(stmt: *mut sqlite3_stmt) -> ffi::c_int {
|
||||
let stmt = &*stmt;
|
||||
let row = stmt.stmt.row().unwrap();
|
||||
row.values.len() as ffi::c_int
|
||||
row.len() as ffi::c_int
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
@ -635,7 +635,7 @@ pub unsafe extern "C" fn sqlite3_column_text(
|
|||
Some(row) => row,
|
||||
None => return std::ptr::null(),
|
||||
};
|
||||
match row.values.get(idx as usize).map(|v| v.to_value()) {
|
||||
match row.get_values().get(idx as usize).map(|v| v.to_value()) {
|
||||
Some(limbo_core::Value::Text(text)) => text.as_bytes().as_ptr(),
|
||||
_ => std::ptr::null(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue