From 80c8a8fa5f358e43436d8ca5212ba3e28c7c899c Mon Sep 17 00:00:00 2001 From: gwenn Date: Tue, 10 Dec 2024 21:02:45 +0100 Subject: [PATCH] Bump bundled SQLite version to 3.47.2 --- .../sqlite3/bindgen_bundled_version.rs | 636 +++++++++--------- .../sqlite3/bindgen_bundled_version_ext.rs | 14 +- libsqlite3-sys/sqlite3/sqlite3.c | 71 +- libsqlite3-sys/sqlite3/sqlite3.h | 6 +- libsqlite3-sys/upgrade.sh | 2 +- 5 files changed, 367 insertions(+), 362 deletions(-) diff --git a/libsqlite3-sys/sqlite3/bindgen_bundled_version.rs b/libsqlite3-sys/sqlite3/bindgen_bundled_version.rs index de267cf..05adc02 100644 --- a/libsqlite3-sys/sqlite3/bindgen_bundled_version.rs +++ b/libsqlite3-sys/sqlite3/bindgen_bundled_version.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.70.1 */ +/* automatically generated by rust-bindgen 0.71.1 */ extern "C" { pub fn sqlite3_auto_extension( @@ -23,10 +23,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } -pub const SQLITE_VERSION: &[u8; 7] = b"3.47.1\0"; -pub const SQLITE_VERSION_NUMBER: i32 = 3047001; +pub const SQLITE_VERSION: &[u8; 7] = b"3.47.2\0"; +pub const SQLITE_VERSION_NUMBER: i32 = 3047002; pub const SQLITE_SOURCE_ID: &[u8; 85] = - b"2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e\0"; + b"2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c\0"; pub const SQLITE_OK: i32 = 0; pub const SQLITE_ERROR: i32 = 1; pub const SQLITE_INTERNAL: i32 = 2; @@ -516,27 +516,27 @@ pub const FTS5_TOKENIZE_PREFIX: i32 = 2; pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; pub const FTS5_TOKENIZE_AUX: i32 = 8; pub const FTS5_TOKEN_COLOCATED: i32 = 1; -extern "C" { +unsafe extern "C" { pub static sqlite3_version: [::std::os::raw::c_char; 0usize]; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_compileoption_used( zOptName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int; } #[repr(C)] @@ -548,7 +548,7 @@ pub type sqlite_int64 = ::std::os::raw::c_longlong; pub type sqlite_uint64 = ::std::os::raw::c_ulonglong; pub type sqlite3_int64 = sqlite_int64; pub type sqlite3_uint64 = sqlite_uint64; -extern "C" { +unsafe extern "C" { pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } pub type sqlite3_callback = ::std::option::Option< @@ -559,7 +559,7 @@ pub type sqlite3_callback = ::std::option::Option< arg4: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int, >; -extern "C" { +unsafe extern "C" { pub fn sqlite3_exec( arg1: *mut sqlite3, sql: *const ::std::os::raw::c_char, @@ -820,22 +820,22 @@ pub struct sqlite3_vfs { ) -> *const ::std::os::raw::c_char, >, } -extern "C" { +unsafe extern "C" { pub fn sqlite3_initialize() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_shutdown() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_os_init() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_os_end() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_config( arg1: *mut sqlite3, op: ::std::os::raw::c_int, @@ -867,40 +867,40 @@ pub struct sqlite3_mem_methods { pub xShutdown: ::std::option::Option, pub pAppData: *mut ::std::os::raw::c_void, } -extern "C" { +unsafe extern "C" { pub fn sqlite3_extended_result_codes( arg1: *mut sqlite3, onoff: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_set_last_insert_rowid(arg1: *mut sqlite3, arg2: sqlite3_int64); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_changes64(arg1: *mut sqlite3) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_total_changes64(arg1: *mut sqlite3) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_interrupt(arg1: *mut sqlite3); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_is_interrupted(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_busy_handler( arg1: *mut sqlite3, arg2: ::std::option::Option< @@ -912,13 +912,13 @@ extern "C" { arg3: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_busy_timeout( arg1: *mut sqlite3, ms: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_get_table( db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, @@ -928,14 +928,14 @@ extern "C" { pzErrmsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) -> *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_snprintf( arg1: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_char, @@ -943,40 +943,40 @@ extern "C" { ... ) -> *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_realloc( arg1: *mut ::std::os::raw::c_void, arg2: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_realloc64( arg1: *mut ::std::os::raw::c_void, arg2: sqlite3_uint64, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_memory_used() -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_set_authorizer( arg1: *mut sqlite3, xAuth: ::std::option::Option< @@ -992,7 +992,7 @@ extern "C" { pUserData: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_trace( arg1: *mut sqlite3, xTrace: ::std::option::Option< @@ -1004,7 +1004,7 @@ extern "C" { arg2: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_profile( arg1: *mut sqlite3, xProfile: ::std::option::Option< @@ -1017,7 +1017,7 @@ extern "C" { arg2: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_trace_v2( arg1: *mut sqlite3, uMask: ::std::os::raw::c_uint, @@ -1032,7 +1032,7 @@ extern "C" { pCtx: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_progress_handler( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, @@ -1042,13 +1042,13 @@ extern "C" { arg4: *mut ::std::os::raw::c_void, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_open( filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_open_v2( filename: *const ::std::os::raw::c_char, ppDb: *mut *mut sqlite3, @@ -1056,45 +1056,45 @@ extern "C" { zVfs: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_uri_parameter( z: sqlite3_filename, zParam: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_uri_boolean( z: sqlite3_filename, zParam: *const ::std::os::raw::c_char, bDefault: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_uri_int64( arg1: sqlite3_filename, arg2: *const ::std::os::raw::c_char, arg3: sqlite3_int64, ) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_uri_key( z: sqlite3_filename, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_filename_database(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_filename_journal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_filename_wal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_database_file_object(arg1: *const ::std::os::raw::c_char) -> *mut sqlite3_file; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_create_filename( zDatabase: *const ::std::os::raw::c_char, zJournal: *const ::std::os::raw::c_char, @@ -1103,22 +1103,22 @@ extern "C" { azParam: *mut *const ::std::os::raw::c_char, ) -> sqlite3_filename; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_free_filename(arg1: sqlite3_filename); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_error_offset(db: *mut sqlite3) -> ::std::os::raw::c_int; } #[repr(C)] @@ -1126,14 +1126,14 @@ extern "C" { pub struct sqlite3_stmt { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3_limit( arg1: *mut sqlite3, id: ::std::os::raw::c_int, newVal: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_prepare_v2( db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, @@ -1142,7 +1142,7 @@ extern "C" { pzTail: *mut *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_prepare_v3( db: *mut sqlite3, zSql: *const ::std::os::raw::c_char, @@ -1152,25 +1152,25 @@ extern "C" { pzTail: *mut *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_isexplain(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_explain( pStmt: *mut sqlite3_stmt, eMode: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } #[repr(C)] @@ -1183,7 +1183,7 @@ pub struct sqlite3_value { pub struct sqlite3_context { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_blob( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, @@ -1192,7 +1192,7 @@ extern "C" { arg4: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_blob64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, @@ -1201,34 +1201,34 @@ extern "C" { arg5: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_double( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: f64, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_int( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_int64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_int64, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_null( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_text( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, @@ -1237,7 +1237,7 @@ extern "C" { arg5: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_text64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, @@ -1247,14 +1247,14 @@ extern "C" { encoding: ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_value( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: *const sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_pointer( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, @@ -1263,129 +1263,129 @@ extern "C" { arg5: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_zeroblob( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_zeroblob64( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, arg3: sqlite3_uint64, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_parameter_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_bind_parameter_index( arg1: *mut sqlite3_stmt, zName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_name( arg1: *mut sqlite3_stmt, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_database_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_table_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_origin_name( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_decltype( arg1: *mut sqlite3_stmt, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_blob( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_int( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_int64( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_text( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_uchar; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_value( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> *mut sqlite3_value; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_bytes( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_column_type( arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_create_function_v2( db: *mut sqlite3, zFunctionName: *const ::std::os::raw::c_char, @@ -1410,7 +1410,7 @@ extern "C" { xDestroy: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_create_window_function( db: *mut sqlite3, zFunctionName: *const ::std::os::raw::c_char, @@ -1436,25 +1436,25 @@ extern "C" { xDestroy: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_transfer_bindings( arg1: *mut sqlite3_stmt, arg2: *mut sqlite3_stmt, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_global_recover() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_thread_cleanup(); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_memory_alarm( arg1: ::std::option::Option< unsafe extern "C" fn( @@ -1467,73 +1467,73 @@ extern "C" { arg3: sqlite3_int64, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_pointer( arg1: *mut sqlite3_value, arg2: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_nochange(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_frombind(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_encoding(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_value_free(arg1: *mut sqlite3_value); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_aggregate_context( arg1: *mut sqlite3_context, nBytes: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite3; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_get_auxdata( arg1: *mut sqlite3_context, N: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_set_auxdata( arg1: *mut sqlite3_context, N: ::std::os::raw::c_int, @@ -1541,13 +1541,13 @@ extern "C" { arg3: ::std::option::Option, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_get_clientdata( arg1: *mut sqlite3, arg2: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_set_clientdata( arg1: *mut sqlite3, arg2: *const ::std::os::raw::c_char, @@ -1557,7 +1557,7 @@ extern "C" { } pub type sqlite3_destructor_type = ::std::option::Option; -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_blob( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, @@ -1565,7 +1565,7 @@ extern "C" { arg4: ::std::option::Option, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_blob64( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_void, @@ -1573,35 +1573,35 @@ extern "C" { arg4: ::std::option::Option, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_error( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_null(arg1: *mut sqlite3_context); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_text( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, @@ -1609,7 +1609,7 @@ extern "C" { arg4: ::std::option::Option, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_text64( arg1: *mut sqlite3_context, arg2: *const ::std::os::raw::c_char, @@ -1618,10 +1618,10 @@ extern "C" { encoding: ::std::os::raw::c_uchar, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_pointer( arg1: *mut sqlite3_context, arg2: *mut ::std::os::raw::c_void, @@ -1629,19 +1629,19 @@ extern "C" { arg4: ::std::option::Option, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_zeroblob64( arg1: *mut sqlite3_context, n: sqlite3_uint64, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_create_collation_v2( arg1: *mut sqlite3, zName: *const ::std::os::raw::c_char, @@ -1659,7 +1659,7 @@ extern "C" { xDestroy: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_collation_needed( arg1: *mut sqlite3, arg2: *mut ::std::os::raw::c_void, @@ -1673,61 +1673,61 @@ extern "C" { >, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_win32_set_directory( type_: ::std::os::raw::c_ulong, zValue: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_win32_set_directory8( type_: ::std::os::raw::c_ulong, zValue: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_name( db: *mut sqlite3, N: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_filename( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, ) -> sqlite3_filename; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_readonly( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_txn_state( arg1: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_commit_hook( arg1: *mut sqlite3, arg2: ::std::option::Option< @@ -1736,14 +1736,14 @@ extern "C" { arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_rollback_hook( arg1: *mut sqlite3, arg2: ::std::option::Option, arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_autovacuum_pages( db: *mut sqlite3, arg1: ::std::option::Option< @@ -1759,7 +1759,7 @@ extern "C" { arg3: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_update_hook( arg1: *mut sqlite3, arg2: ::std::option::Option< @@ -1774,25 +1774,25 @@ extern "C" { arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_hard_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_soft_heap_limit(N: ::std::os::raw::c_int); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_table_column_metadata( db: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, @@ -1805,7 +1805,7 @@ extern "C" { pAutoinc: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_load_extension( db: *mut sqlite3, zFile: *const ::std::os::raw::c_char, @@ -1813,13 +1813,13 @@ extern "C" { pzErrMsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_enable_load_extension( db: *mut sqlite3, onoff: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_reset_auto_extension(); } #[repr(C)] @@ -2004,7 +2004,7 @@ pub struct sqlite3_index_constraint_usage { pub argvIndex: ::std::os::raw::c_int, pub omit: ::std::os::raw::c_uchar, } -extern "C" { +unsafe extern "C" { pub fn sqlite3_create_module_v2( db: *mut sqlite3, zName: *const ::std::os::raw::c_char, @@ -2013,7 +2013,7 @@ extern "C" { xDestroy: ::std::option::Option, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_drop_modules( db: *mut sqlite3, azKeep: *mut *const ::std::os::raw::c_char, @@ -2031,13 +2031,13 @@ pub struct sqlite3_vtab { pub struct sqlite3_vtab_cursor { pub pVtab: *mut sqlite3_vtab, } -extern "C" { +unsafe extern "C" { pub fn sqlite3_declare_vtab( arg1: *mut sqlite3, zSQL: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_overload_function( arg1: *mut sqlite3, zFuncName: *const ::std::os::raw::c_char, @@ -2049,7 +2049,7 @@ extern "C" { pub struct sqlite3_blob { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3_blob_open( arg1: *mut sqlite3, zDb: *const ::std::os::raw::c_char, @@ -2060,19 +2060,19 @@ extern "C" { ppBlob: *mut *mut sqlite3_blob, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_blob_reopen( arg1: *mut sqlite3_blob, arg2: sqlite3_int64, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_blob_read( arg1: *mut sqlite3_blob, Z: *mut ::std::os::raw::c_void, @@ -2080,7 +2080,7 @@ extern "C" { iOffset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_blob_write( arg1: *mut sqlite3_blob, z: *const ::std::os::raw::c_void, @@ -2088,31 +2088,31 @@ extern "C" { iOffset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vfs_register( arg1: *mut sqlite3_vfs, makeDflt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex); } #[repr(C)] @@ -2136,16 +2136,16 @@ pub struct sqlite3_mutex_methods { unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, >, } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_file_control( arg1: *mut sqlite3, zDbName: *const ::std::os::raw::c_char, @@ -2153,20 +2153,20 @@ extern "C" { arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_keyword_count() -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_keyword_name( arg1: ::std::os::raw::c_int, arg2: *mut *const ::std::os::raw::c_char, arg3: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_keyword_check( arg1: *const ::std::os::raw::c_char, arg2: ::std::os::raw::c_int, @@ -2177,45 +2177,45 @@ extern "C" { pub struct sqlite3_str { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_new(arg1: *mut sqlite3) -> *mut sqlite3_str; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_finish(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_append( arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char, N: ::std::os::raw::c_int, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_appendall(arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_appendchar( arg1: *mut sqlite3_str, N: ::std::os::raw::c_int, C: ::std::os::raw::c_char, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_reset(arg1: *mut sqlite3_str); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_errcode(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_length(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_str_value(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_status( op: ::std::os::raw::c_int, pCurrent: *mut ::std::os::raw::c_int, @@ -2223,7 +2223,7 @@ extern "C" { resetFlag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_status64( op: ::std::os::raw::c_int, pCurrent: *mut sqlite3_int64, @@ -2231,7 +2231,7 @@ extern "C" { resetFlag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_status( arg1: *mut sqlite3, op: ::std::os::raw::c_int, @@ -2240,7 +2240,7 @@ extern "C" { resetFlg: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_status( arg1: *mut sqlite3_stmt, op: ::std::os::raw::c_int, @@ -2360,7 +2360,7 @@ pub struct sqlite3_pcache_methods { pub struct sqlite3_backup { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3_backup_init( pDest: *mut sqlite3, zDestName: *const ::std::os::raw::c_char, @@ -2368,22 +2368,22 @@ extern "C" { zSourceName: *const ::std::os::raw::c_char, ) -> *mut sqlite3_backup; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_backup_step( p: *mut sqlite3_backup, nPage: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_unlock_notify( pBlocked: *mut sqlite3, xNotify: ::std::option::Option< @@ -2395,40 +2395,40 @@ extern "C" { pNotifyArg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stricmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_strnicmp( arg1: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_strglob( zGlob: *const ::std::os::raw::c_char, zStr: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_strlike( zGlob: *const ::std::os::raw::c_char, zStr: *const ::std::os::raw::c_char, cEsc: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_log( iErrCode: ::std::os::raw::c_int, zFormat: *const ::std::os::raw::c_char, ... ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_wal_hook( arg1: *mut sqlite3, arg2: ::std::option::Option< @@ -2442,19 +2442,19 @@ extern "C" { arg3: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_wal_autocheckpoint( db: *mut sqlite3, N: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_wal_checkpoint( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_wal_checkpoint_v2( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, @@ -2463,55 +2463,55 @@ extern "C" { pnCkpt: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_config( arg1: *mut sqlite3, op: ::std::os::raw::c_int, ... ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_nochange(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_collation( arg1: *mut sqlite3_index_info, arg2: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_distinct(arg1: *mut sqlite3_index_info) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_in( arg1: *mut sqlite3_index_info, iCons: ::std::os::raw::c_int, bHandle: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_in_first( pVal: *mut sqlite3_value, ppOut: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_in_next( pVal: *mut sqlite3_value, ppOut: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_vtab_rhs_value( arg1: *mut sqlite3_index_info, arg2: ::std::os::raw::c_int, ppVal: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_scanstatus( pStmt: *mut sqlite3_stmt, idx: ::std::os::raw::c_int, @@ -2519,7 +2519,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_scanstatus_v2( pStmt: *mut sqlite3_stmt, idx: ::std::os::raw::c_int, @@ -2528,13 +2528,13 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_preupdate_hook( db: *mut sqlite3, xPreUpdate: ::std::option::Option< @@ -2551,30 +2551,30 @@ extern "C" { arg1: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_preupdate_old( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_preupdate_new( arg1: *mut sqlite3, arg2: ::std::os::raw::c_int, arg3: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_preupdate_blobwrite(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int; } #[repr(C)] @@ -2582,36 +2582,36 @@ extern "C" { pub struct sqlite3_snapshot { pub hidden: [::std::os::raw::c_uchar; 48usize], } -extern "C" { +unsafe extern "C" { pub fn sqlite3_snapshot_get( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, ppSnapshot: *mut *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_snapshot_open( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, pSnapshot: *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot); } -extern "C" { +unsafe extern "C" { pub fn sqlite3_snapshot_cmp( p1: *mut sqlite3_snapshot, p2: *mut sqlite3_snapshot, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_snapshot_recover( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_serialize( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, @@ -2619,7 +2619,7 @@ extern "C" { mFlags: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } -extern "C" { +unsafe extern "C" { pub fn sqlite3_deserialize( db: *mut sqlite3, zSchema: *const ::std::os::raw::c_char, @@ -2630,7 +2630,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } pub type sqlite3_rtree_dbl = f64; -extern "C" { +unsafe extern "C" { pub fn sqlite3_rtree_geometry_callback( db: *mut sqlite3, zGeom: *const ::std::os::raw::c_char, @@ -2654,7 +2654,7 @@ pub struct sqlite3_rtree_geometry { pub pUser: *mut ::std::os::raw::c_void, pub xDelUser: ::std::option::Option, } -extern "C" { +unsafe extern "C" { pub fn sqlite3_rtree_query_callback( db: *mut sqlite3, zQueryFunc: *const ::std::os::raw::c_char, @@ -2695,42 +2695,42 @@ pub struct sqlite3_session { pub struct sqlite3_changeset_iter { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_create( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ppSession: *mut *mut sqlite3_session, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_delete(pSession: *mut sqlite3_session); } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_object_config( arg1: *mut sqlite3_session, op: ::std::os::raw::c_int, pArg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_enable( pSession: *mut sqlite3_session, bEnable: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_indirect( pSession: *mut sqlite3_session, bIndirect: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_attach( pSession: *mut sqlite3_session, zTab: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_table_filter( pSession: *mut sqlite3_session, xFilter: ::std::option::Option< @@ -2742,17 +2742,17 @@ extern "C" { pCtx: *mut ::std::os::raw::c_void, ); } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_changeset( pSession: *mut sqlite3_session, pnChangeset: *mut ::std::os::raw::c_int, ppChangeset: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_changeset_size(pSession: *mut sqlite3_session) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_diff( pSession: *mut sqlite3_session, zFromDb: *const ::std::os::raw::c_char, @@ -2760,27 +2760,27 @@ extern "C" { pzErrMsg: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_patchset( pSession: *mut sqlite3_session, pnPatchset: *mut ::std::os::raw::c_int, ppPatchset: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_memory_used(pSession: *mut sqlite3_session) -> sqlite3_int64; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_start( pp: *mut *mut sqlite3_changeset_iter, nChangeset: ::std::os::raw::c_int, pChangeset: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_start_v2( pp: *mut *mut sqlite3_changeset_iter, nChangeset: ::std::os::raw::c_int, @@ -2788,10 +2788,10 @@ extern "C" { flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_op( pIter: *mut sqlite3_changeset_iter, pzTab: *mut *const ::std::os::raw::c_char, @@ -2800,44 +2800,44 @@ extern "C" { pbIndirect: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_pk( pIter: *mut sqlite3_changeset_iter, pabPK: *mut *mut ::std::os::raw::c_uchar, pnCol: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_old( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_new( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_conflict( pIter: *mut sqlite3_changeset_iter, iVal: ::std::os::raw::c_int, ppValue: *mut *mut sqlite3_value, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_fk_conflicts( pIter: *mut sqlite3_changeset_iter, pnOut: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_invert( nIn: ::std::os::raw::c_int, pIn: *const ::std::os::raw::c_void, @@ -2845,7 +2845,7 @@ extern "C" { ppOut: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_concat( nA: ::std::os::raw::c_int, pA: *mut ::std::os::raw::c_void, @@ -2855,7 +2855,7 @@ extern "C" { ppOut: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_upgrade( db: *mut sqlite3, zDb: *const ::std::os::raw::c_char, @@ -2870,40 +2870,40 @@ extern "C" { pub struct sqlite3_changegroup { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_schema( arg1: *mut sqlite3_changegroup, arg2: *mut sqlite3, zDb: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_add( arg1: *mut sqlite3_changegroup, nData: ::std::os::raw::c_int, pData: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_add_change( arg1: *mut sqlite3_changegroup, arg2: *mut sqlite3_changeset_iter, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_output( arg1: *mut sqlite3_changegroup, pnData: *mut ::std::os::raw::c_int, ppData: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup); } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_apply( db: *mut sqlite3, nChangeset: ::std::os::raw::c_int, @@ -2924,7 +2924,7 @@ extern "C" { pCtx: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_apply_v2( db: *mut sqlite3, nChangeset: ::std::os::raw::c_int, @@ -2953,17 +2953,17 @@ extern "C" { pub struct sqlite3_rebaser { _unused: [u8; 0], } -extern "C" { +unsafe extern "C" { pub fn sqlite3rebaser_create(ppNew: *mut *mut sqlite3_rebaser) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3rebaser_configure( arg1: *mut sqlite3_rebaser, nRebase: ::std::os::raw::c_int, pRebase: *const ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3rebaser_rebase( arg1: *mut sqlite3_rebaser, nIn: ::std::os::raw::c_int, @@ -2972,10 +2972,10 @@ extern "C" { ppOut: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3rebaser_delete(p: *mut sqlite3_rebaser); } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_apply_strm( db: *mut sqlite3, xInput: ::std::option::Option< @@ -3002,7 +3002,7 @@ extern "C" { pCtx: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_apply_v2_strm( db: *mut sqlite3, xInput: ::std::option::Option< @@ -3032,7 +3032,7 @@ extern "C" { flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_concat_strm( xInputA: ::std::option::Option< unsafe extern "C" fn( @@ -3060,7 +3060,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_invert_strm( xInput: ::std::option::Option< unsafe extern "C" fn( @@ -3080,7 +3080,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_start_strm( pp: *mut *mut sqlite3_changeset_iter, xInput: ::std::option::Option< @@ -3093,7 +3093,7 @@ extern "C" { pIn: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changeset_start_v2_strm( pp: *mut *mut sqlite3_changeset_iter, xInput: ::std::option::Option< @@ -3107,7 +3107,7 @@ extern "C" { flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_changeset_strm( pSession: *mut sqlite3_session, xOutput: ::std::option::Option< @@ -3120,7 +3120,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_patchset_strm( pSession: *mut sqlite3_session, xOutput: ::std::option::Option< @@ -3133,7 +3133,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_add_strm( arg1: *mut sqlite3_changegroup, xInput: ::std::option::Option< @@ -3146,7 +3146,7 @@ extern "C" { pIn: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3changegroup_output_strm( arg1: *mut sqlite3_changegroup, xOutput: ::std::option::Option< @@ -3159,7 +3159,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3rebaser_rebase_strm( pRebaser: *mut sqlite3_rebaser, xInput: ::std::option::Option< @@ -3180,7 +3180,7 @@ extern "C" { pOut: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } -extern "C" { +unsafe extern "C" { pub fn sqlite3session_config( op: ::std::os::raw::c_int, pArg: *mut ::std::os::raw::c_void, diff --git a/libsqlite3-sys/sqlite3/bindgen_bundled_version_ext.rs b/libsqlite3-sys/sqlite3/bindgen_bundled_version_ext.rs index a581fff..915516d 100644 --- a/libsqlite3-sys/sqlite3/bindgen_bundled_version_ext.rs +++ b/libsqlite3-sys/sqlite3/bindgen_bundled_version_ext.rs @@ -1,9 +1,9 @@ -/* automatically generated by rust-bindgen 0.70.1 */ +/* automatically generated by rust-bindgen 0.71.1 */ -pub const SQLITE_VERSION: &[u8; 7] = b"3.47.1\0"; -pub const SQLITE_VERSION_NUMBER: i32 = 3047001; +pub const SQLITE_VERSION: &[u8; 7] = b"3.47.2\0"; +pub const SQLITE_VERSION_NUMBER: i32 = 3047002; pub const SQLITE_SOURCE_ID: &[u8; 85] = - b"2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e\0"; + b"2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c\0"; pub const SQLITE_OK: i32 = 0; pub const SQLITE_ERROR: i32 = 1; pub const SQLITE_INTERNAL: i32 = 2; @@ -477,7 +477,7 @@ pub const FTS5_TOKENIZE_PREFIX: i32 = 2; pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; pub const FTS5_TOKENIZE_AUX: i32 = 8; pub const FTS5_TOKEN_COLOCATED: i32 = 1; -extern "C" { +unsafe extern "C" { pub static sqlite3_version: [::std::os::raw::c_char; 0usize]; } #[repr(C)] @@ -779,10 +779,10 @@ pub struct sqlite3_context { } pub type sqlite3_destructor_type = ::std::option::Option; -extern "C" { +unsafe extern "C" { pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; } -extern "C" { +unsafe extern "C" { pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; } #[repr(C)] diff --git a/libsqlite3-sys/sqlite3/sqlite3.c b/libsqlite3-sys/sqlite3/sqlite3.c index 099c548..c748d03 100644 --- a/libsqlite3-sys/sqlite3/sqlite3.c +++ b/libsqlite3-sys/sqlite3/sqlite3.c @@ -1,6 +1,6 @@ /****************************************************************************** ** This file is an amalgamation of many separate C source files from SQLite -** version 3.47.1. By combining all the individual C code files into this +** version 3.47.2. By combining all the individual C code files into this ** single large file, the entire code can be compiled as a single translation ** unit. This allows many compilers to do optimizations that would not be ** possible if the files were compiled separately. Performance improvements @@ -18,7 +18,7 @@ ** separate file. This file contains only code for the core SQLite library. ** ** The content in this amalgamation comes from Fossil check-in -** b95d11e958643b969c47a8e5857f3793b9e6. +** 2aabe05e2e8cae4847a802ee2daddc1d7413. */ #define SQLITE_CORE 1 #define SQLITE_AMALGAMATION 1 @@ -462,9 +462,9 @@ extern "C" { ** [sqlite3_libversion_number()], [sqlite3_sourceid()], ** [sqlite_version()] and [sqlite_source_id()]. */ -#define SQLITE_VERSION "3.47.1" -#define SQLITE_VERSION_NUMBER 3047001 -#define SQLITE_SOURCE_ID "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e" +#define SQLITE_VERSION "3.47.2" +#define SQLITE_VERSION_NUMBER 3047002 +#define SQLITE_SOURCE_ID "2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c" /* ** CAPI3REF: Run-Time Library Version Numbers @@ -35697,8 +35697,8 @@ SQLITE_PRIVATE int sqlite3AtoF(const char *z, double *pResult, int length, u8 en int eValid = 1; /* True exponent is either not used or is well-formed */ int nDigit = 0; /* Number of digits processed */ int eType = 1; /* 1: pure integer, 2+: fractional -1 or less: bad UTF16 */ + u64 s2; /* round-tripped significand */ double rr[2]; - u64 s2; assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE ); *pResult = 0.0; /* Default return value, in case of an error */ @@ -35801,7 +35801,7 @@ do_atof_calc: e = (e*esign) + d; /* Try to adjust the exponent to make it smaller */ - while( e>0 && s<(LARGEST_UINT64/10) ){ + while( e>0 && s<((LARGEST_UINT64-0x7ff)/10) ){ s *= 10; e--; } @@ -35811,11 +35811,16 @@ do_atof_calc: } rr[0] = (double)s; - s2 = (u64)rr[0]; -#if defined(_MSC_VER) && _MSC_VER<1700 - if( s2==0x8000000000000000LL ){ s2 = 2*(u64)(0.5*rr[0]); } -#endif - rr[1] = s>=s2 ? (double)(s - s2) : -(double)(s2 - s); + assert( sizeof(s2)==sizeof(rr[0]) ); + memcpy(&s2, &rr[0], sizeof(s2)); + if( s2<=0x43efffffffffffffLL ){ + s2 = (u64)rr[0]; + rr[1] = s>=s2 ? (double)(s - s2) : -(double)(s2 - s); + }else{ + rr[1] = 0.0; + } + assert( rr[1]<=1.0e-10*rr[0] ); /* Equal only when rr[0]==0.0 */ + if( e>0 ){ while( e>=100 ){ e -= 100; @@ -147605,32 +147610,32 @@ static Expr *substExpr( if( pSubst->isOuterJoin ){ ExprSetProperty(pNew, EP_CanBeNull); } + if( pNew->op==TK_TRUEFALSE ){ + pNew->u.iValue = sqlite3ExprTruthValue(pNew); + pNew->op = TK_INTEGER; + ExprSetProperty(pNew, EP_IntValue); + } + + /* Ensure that the expression now has an implicit collation sequence, + ** just as it did when it was a column of a view or sub-query. */ + { + CollSeq *pNat = sqlite3ExprCollSeq(pSubst->pParse, pNew); + CollSeq *pColl = sqlite3ExprCollSeq(pSubst->pParse, + pSubst->pCList->a[iColumn].pExpr + ); + if( pNat!=pColl || (pNew->op!=TK_COLUMN && pNew->op!=TK_COLLATE) ){ + pNew = sqlite3ExprAddCollateString(pSubst->pParse, pNew, + (pColl ? pColl->zName : "BINARY") + ); + } + } + ExprClearProperty(pNew, EP_Collate); if( ExprHasProperty(pExpr,EP_OuterON|EP_InnerON) ){ sqlite3SetJoinExpr(pNew, pExpr->w.iJoin, pExpr->flags & (EP_OuterON|EP_InnerON)); } sqlite3ExprDelete(db, pExpr); pExpr = pNew; - if( pExpr->op==TK_TRUEFALSE ){ - pExpr->u.iValue = sqlite3ExprTruthValue(pExpr); - pExpr->op = TK_INTEGER; - ExprSetProperty(pExpr, EP_IntValue); - } - - /* Ensure that the expression now has an implicit collation sequence, - ** just as it did when it was a column of a view or sub-query. */ - { - CollSeq *pNat = sqlite3ExprCollSeq(pSubst->pParse, pExpr); - CollSeq *pColl = sqlite3ExprCollSeq(pSubst->pParse, - pSubst->pCList->a[iColumn].pExpr - ); - if( pNat!=pColl || (pExpr->op!=TK_COLUMN && pExpr->op!=TK_COLLATE) ){ - pExpr = sqlite3ExprAddCollateString(pSubst->pParse, pExpr, - (pColl ? pColl->zName : "BINARY") - ); - } - } - ExprClearProperty(pExpr, EP_Collate); } } }else{ @@ -254938,7 +254943,7 @@ static void fts5SourceIdFunc( ){ assert( nArg==0 ); UNUSED_PARAM2(nArg, apUnused); - sqlite3_result_text(pCtx, "fts5: 2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e", -1, SQLITE_TRANSIENT); + sqlite3_result_text(pCtx, "fts5: 2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c", -1, SQLITE_TRANSIENT); } /* diff --git a/libsqlite3-sys/sqlite3/sqlite3.h b/libsqlite3-sys/sqlite3/sqlite3.h index dbecc3f..d8ce148 100644 --- a/libsqlite3-sys/sqlite3/sqlite3.h +++ b/libsqlite3-sys/sqlite3/sqlite3.h @@ -146,9 +146,9 @@ extern "C" { ** [sqlite3_libversion_number()], [sqlite3_sourceid()], ** [sqlite_version()] and [sqlite_source_id()]. */ -#define SQLITE_VERSION "3.47.1" -#define SQLITE_VERSION_NUMBER 3047001 -#define SQLITE_SOURCE_ID "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e" +#define SQLITE_VERSION "3.47.2" +#define SQLITE_VERSION_NUMBER 3047002 +#define SQLITE_SOURCE_ID "2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c" /* ** CAPI3REF: Run-Time Library Version Numbers diff --git a/libsqlite3-sys/upgrade.sh b/libsqlite3-sys/upgrade.sh index 3aa36b6..aba6e4d 100755 --- a/libsqlite3-sys/upgrade.sh +++ b/libsqlite3-sys/upgrade.sh @@ -9,7 +9,7 @@ export SQLITE3_LIB_DIR="$SCRIPT_DIR/sqlite3" mkdir -p "$TARGET_DIR" "$SQLITE3_LIB_DIR" # Download and extract amalgamation -SQLITE=sqlite-amalgamation-3470100 +SQLITE=sqlite-amalgamation-3470200 curl -O https://sqlite.org/2024/$SQLITE.zip unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.c" > "$SQLITE3_LIB_DIR/sqlite3.c" unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.h" > "$SQLITE3_LIB_DIR/sqlite3.h"