diff --git a/src/inner_connection.rs b/src/inner_connection.rs index 95b2d82..f967584 100644 --- a/src/inner_connection.rs +++ b/src/inner_connection.rs @@ -106,6 +106,10 @@ impl InnerConnection { return Err(e); } + + // attempt to turn on extended results code; don't fail if we can't. + ffi::sqlite3_extended_result_codes(db, 1); + let r = ffi::sqlite3_busy_timeout(db, 5000); if r != ffi::SQLITE_OK { let e = error_from_handle(db, r); @@ -113,9 +117,6 @@ impl InnerConnection { return Err(e); } - // attempt to turn on extended results code; don't fail if we can't. - ffi::sqlite3_extended_result_codes(db, 1); - Ok(InnerConnection::new(db, true)) } }