mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
Apply patch
529c3c8430/src/rusqlite/debian/patches/fix-tests-unsigned-char.patch
This commit is contained in:
parent
c2fbd167de
commit
675a9981cf
@ -1881,7 +1881,7 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_from_handle_owned() -> Result<()> {
|
fn test_from_handle_owned() -> Result<()> {
|
||||||
let mut handle: *mut ffi::sqlite3 = std::ptr::null_mut();
|
let mut handle: *mut ffi::sqlite3 = std::ptr::null_mut();
|
||||||
let r = unsafe { ffi::sqlite3_open(":memory:\0".as_ptr() as *const i8, &mut handle) };
|
let r = unsafe { ffi::sqlite3_open(":memory:\0".as_ptr() as *const c_char, &mut handle) };
|
||||||
assert_eq!(r, ffi::SQLITE_OK);
|
assert_eq!(r, ffi::SQLITE_OK);
|
||||||
let db = unsafe { Connection::from_handle_owned(handle) }?;
|
let db = unsafe { Connection::from_handle_owned(handle) }?;
|
||||||
db.execute_batch("PRAGMA VACUUM")?;
|
db.execute_batch("PRAGMA VACUUM")?;
|
||||||
|
Loading…
Reference in New Issue
Block a user