mirror of
https://github.com/isar/rusqlite.git
synced 2026-02-17 00:09:12 +08:00
@@ -40,7 +40,7 @@ impl Session<'_> {
|
||||
db: &'conn Connection,
|
||||
name: DatabaseName<'_>,
|
||||
) -> Result<Session<'conn>> {
|
||||
let name = name.to_cstring()?;
|
||||
let name = name.as_cstring()?;
|
||||
|
||||
let db = db.db.borrow_mut().db;
|
||||
|
||||
@@ -161,7 +161,7 @@ impl Session<'_> {
|
||||
|
||||
/// Load the difference between tables.
|
||||
pub fn diff(&mut self, from: DatabaseName<'_>, table: &str) -> Result<()> {
|
||||
let from = from.to_cstring()?;
|
||||
let from = from.as_cstring()?;
|
||||
let table = str_to_cstring(table)?;
|
||||
let table = table.as_ptr();
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user