mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-01 22:11:07 +00:00
A minor adjustment
This commit is contained in:
parent
7441967fbc
commit
cf80303a1d
@ -104,8 +104,7 @@ impl<'l> Parameter for &'l str {
|
|||||||
debug_assert!(i > 0, "the indexing starts from 1");
|
debug_assert!(i > 0, "the indexing starts from 1");
|
||||||
unsafe {
|
unsafe {
|
||||||
success!(statement.raw.1, ffi::sqlite3_bind_text(statement.raw.0, i as c_int,
|
success!(statement.raw.1, ffi::sqlite3_bind_text(statement.raw.0, i as c_int,
|
||||||
str_to_c_str!(self.as_bytes()),
|
str_to_c_str!(*self), -1, None));
|
||||||
-1, None));
|
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user