Fix broken load_extension feature

This commit is contained in:
John Gallagher 2015-12-08 21:15:23 -05:00
parent c99ecd6681
commit 51a542c0f7

View File

@ -484,13 +484,14 @@ impl SqliteConnection {
///
/// conn.load_extension("my_sqlite_extension", None)
/// }
/// ```
///
/// # Failure
///
/// Will return `Err` if the underlying SQLite call fails.
#[cfg(feature = "load_extension")]
pub fn load_extension<P: AsRef<Path>>(&self, dylib_path: P, entry_point: Option<&str>) -> SqliteResult<()> {
self.db.borrow_mut().load_extension(dylib_path, entry_point)
self.db.borrow_mut().load_extension(dylib_path.as_ref(), entry_point)
}
fn decode_result(&self, code: c_int) -> SqliteResult<()> {