mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +08:00
Reactivate session feature
And fix partially x_input.
This commit is contained in:
parent
4923d8f8da
commit
0693d5f6ce
@ -48,7 +48,7 @@ csvtab = ["csv", "vtab"]
|
|||||||
# pointer passing interfaces: 3.20.0
|
# pointer passing interfaces: 3.20.0
|
||||||
array = ["vtab"]
|
array = ["vtab"]
|
||||||
# session extension: 3.13.0
|
# session extension: 3.13.0
|
||||||
#session = ["libsqlite3-sys/session", "hooks"]
|
session = ["libsqlite3-sys/session", "hooks"]
|
||||||
# window functions: 3.25.0
|
# window functions: 3.25.0
|
||||||
window = ["functions"]
|
window = ["functions"]
|
||||||
# 3.9.0
|
# 3.9.0
|
||||||
|
@ -714,7 +714,7 @@ unsafe extern "C" fn x_input(p_in: *mut c_void, data: *mut c_void, len: *mut c_i
|
|||||||
if p_in.is_null() {
|
if p_in.is_null() {
|
||||||
return ffi::SQLITE_MISUSE;
|
return ffi::SQLITE_MISUSE;
|
||||||
}
|
}
|
||||||
let bytes: &mut [u8] = from_raw_parts_mut(data as *mut u8, len as usize);
|
let bytes: &mut [u8] = from_raw_parts_mut(data as *mut u8, *len as usize);
|
||||||
let input = p_in as *mut &mut dyn Read;
|
let input = p_in as *mut &mut dyn Read;
|
||||||
match (*input).read(bytes) {
|
match (*input).read(bytes) {
|
||||||
Ok(n) => {
|
Ok(n) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user