mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Fix sqlcipher build
This commit is contained in:
parent
987755f58e
commit
15d56bcb52
@ -408,13 +408,13 @@ pub unsafe fn error_from_handle(db: *mut ffi::sqlite3, code: c_int) -> Error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cold]
|
#[cold]
|
||||||
#[cfg(not(all(feature = "modern_sqlite", not(feature = "bundled-sqlcipher"))))] // SQLite >= 3.38.0
|
#[cfg(not(feature = "modern_sqlite"))] // SQLite >= 3.38.0
|
||||||
pub unsafe fn error_with_offset(db: *mut ffi::sqlite3, code: c_int, _sql: &str) -> Error {
|
pub unsafe fn error_with_offset(db: *mut ffi::sqlite3, code: c_int, _sql: &str) -> Error {
|
||||||
error_from_handle(db, code)
|
error_from_handle(db, code)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cold]
|
#[cold]
|
||||||
#[cfg(all(feature = "modern_sqlite", not(feature = "bundled-sqlcipher")))] // SQLite >= 3.38.0
|
#[cfg(feature = "modern_sqlite")] // SQLite >= 3.38.0
|
||||||
pub unsafe fn error_with_offset(db: *mut ffi::sqlite3, code: c_int, sql: &str) -> Error {
|
pub unsafe fn error_with_offset(db: *mut ffi::sqlite3, code: c_int, sql: &str) -> Error {
|
||||||
if db.is_null() {
|
if db.is_null() {
|
||||||
error_from_sqlite_code(code, None)
|
error_from_sqlite_code(code, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user