mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-20 08:17:44 +08:00
Merge pull request #1613 from gwenn/3.47.2
Bump bundled SQLite version to 3.47.2
This commit is contained in:
commit
018f723df5
636
libsqlite3-sys/sqlite3/bindgen_bundled_version.rs
vendored
636
libsqlite3-sys/sqlite3/bindgen_bundled_version.rs
vendored
File diff suppressed because it is too large
Load Diff
@ -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: &[u8; 7] = b"3.47.2\0";
|
||||||
pub const SQLITE_VERSION_NUMBER: i32 = 3047001;
|
pub const SQLITE_VERSION_NUMBER: i32 = 3047002;
|
||||||
pub const SQLITE_SOURCE_ID: &[u8; 85] =
|
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_OK: i32 = 0;
|
||||||
pub const SQLITE_ERROR: i32 = 1;
|
pub const SQLITE_ERROR: i32 = 1;
|
||||||
pub const SQLITE_INTERNAL: i32 = 2;
|
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_DOCUMENT: i32 = 4;
|
||||||
pub const FTS5_TOKENIZE_AUX: i32 = 8;
|
pub const FTS5_TOKENIZE_AUX: i32 = 8;
|
||||||
pub const FTS5_TOKEN_COLOCATED: i32 = 1;
|
pub const FTS5_TOKEN_COLOCATED: i32 = 1;
|
||||||
extern "C" {
|
unsafe extern "C" {
|
||||||
pub static sqlite3_version: [::std::os::raw::c_char; 0usize];
|
pub static sqlite3_version: [::std::os::raw::c_char; 0usize];
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
@ -779,10 +779,10 @@ pub struct sqlite3_context {
|
|||||||
}
|
}
|
||||||
pub type sqlite3_destructor_type =
|
pub type sqlite3_destructor_type =
|
||||||
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
|
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
|
||||||
extern "C" {
|
unsafe extern "C" {
|
||||||
pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char;
|
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;
|
pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char;
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
67
libsqlite3-sys/sqlite3/sqlite3.c
vendored
67
libsqlite3-sys/sqlite3/sqlite3.c
vendored
@ -1,6 +1,6 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
** This file is an amalgamation of many separate C source files from SQLite
|
** 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
|
** 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
|
** unit. This allows many compilers to do optimizations that would not be
|
||||||
** possible if the files were compiled separately. Performance improvements
|
** 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.
|
** separate file. This file contains only code for the core SQLite library.
|
||||||
**
|
**
|
||||||
** The content in this amalgamation comes from Fossil check-in
|
** The content in this amalgamation comes from Fossil check-in
|
||||||
** b95d11e958643b969c47a8e5857f3793b9e6.
|
** 2aabe05e2e8cae4847a802ee2daddc1d7413.
|
||||||
*/
|
*/
|
||||||
#define SQLITE_CORE 1
|
#define SQLITE_CORE 1
|
||||||
#define SQLITE_AMALGAMATION 1
|
#define SQLITE_AMALGAMATION 1
|
||||||
@ -462,9 +462,9 @@ extern "C" {
|
|||||||
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
||||||
** [sqlite_version()] and [sqlite_source_id()].
|
** [sqlite_version()] and [sqlite_source_id()].
|
||||||
*/
|
*/
|
||||||
#define SQLITE_VERSION "3.47.1"
|
#define SQLITE_VERSION "3.47.2"
|
||||||
#define SQLITE_VERSION_NUMBER 3047001
|
#define SQLITE_VERSION_NUMBER 3047002
|
||||||
#define SQLITE_SOURCE_ID "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e"
|
#define SQLITE_SOURCE_ID "2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Run-Time Library Version Numbers
|
** 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 eValid = 1; /* True exponent is either not used or is well-formed */
|
||||||
int nDigit = 0; /* Number of digits processed */
|
int nDigit = 0; /* Number of digits processed */
|
||||||
int eType = 1; /* 1: pure integer, 2+: fractional -1 or less: bad UTF16 */
|
int eType = 1; /* 1: pure integer, 2+: fractional -1 or less: bad UTF16 */
|
||||||
|
u64 s2; /* round-tripped significand */
|
||||||
double rr[2];
|
double rr[2];
|
||||||
u64 s2;
|
|
||||||
|
|
||||||
assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE );
|
assert( enc==SQLITE_UTF8 || enc==SQLITE_UTF16LE || enc==SQLITE_UTF16BE );
|
||||||
*pResult = 0.0; /* Default return value, in case of an error */
|
*pResult = 0.0; /* Default return value, in case of an error */
|
||||||
@ -35801,7 +35801,7 @@ do_atof_calc:
|
|||||||
e = (e*esign) + d;
|
e = (e*esign) + d;
|
||||||
|
|
||||||
/* Try to adjust the exponent to make it smaller */
|
/* 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;
|
s *= 10;
|
||||||
e--;
|
e--;
|
||||||
}
|
}
|
||||||
@ -35811,11 +35811,16 @@ do_atof_calc:
|
|||||||
}
|
}
|
||||||
|
|
||||||
rr[0] = (double)s;
|
rr[0] = (double)s;
|
||||||
|
assert( sizeof(s2)==sizeof(rr[0]) );
|
||||||
|
memcpy(&s2, &rr[0], sizeof(s2));
|
||||||
|
if( s2<=0x43efffffffffffffLL ){
|
||||||
s2 = (u64)rr[0];
|
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);
|
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 ){
|
if( e>0 ){
|
||||||
while( e>=100 ){
|
while( e>=100 ){
|
||||||
e -= 100;
|
e -= 100;
|
||||||
@ -147605,32 +147610,32 @@ static Expr *substExpr(
|
|||||||
if( pSubst->isOuterJoin ){
|
if( pSubst->isOuterJoin ){
|
||||||
ExprSetProperty(pNew, EP_CanBeNull);
|
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) ){
|
if( ExprHasProperty(pExpr,EP_OuterON|EP_InnerON) ){
|
||||||
sqlite3SetJoinExpr(pNew, pExpr->w.iJoin,
|
sqlite3SetJoinExpr(pNew, pExpr->w.iJoin,
|
||||||
pExpr->flags & (EP_OuterON|EP_InnerON));
|
pExpr->flags & (EP_OuterON|EP_InnerON));
|
||||||
}
|
}
|
||||||
sqlite3ExprDelete(db, pExpr);
|
sqlite3ExprDelete(db, pExpr);
|
||||||
pExpr = pNew;
|
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{
|
}else{
|
||||||
@ -254938,7 +254943,7 @@ static void fts5SourceIdFunc(
|
|||||||
){
|
){
|
||||||
assert( nArg==0 );
|
assert( nArg==0 );
|
||||||
UNUSED_PARAM2(nArg, apUnused);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
6
libsqlite3-sys/sqlite3/sqlite3.h
vendored
6
libsqlite3-sys/sqlite3/sqlite3.h
vendored
@ -146,9 +146,9 @@ extern "C" {
|
|||||||
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
||||||
** [sqlite_version()] and [sqlite_source_id()].
|
** [sqlite_version()] and [sqlite_source_id()].
|
||||||
*/
|
*/
|
||||||
#define SQLITE_VERSION "3.47.1"
|
#define SQLITE_VERSION "3.47.2"
|
||||||
#define SQLITE_VERSION_NUMBER 3047001
|
#define SQLITE_VERSION_NUMBER 3047002
|
||||||
#define SQLITE_SOURCE_ID "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e"
|
#define SQLITE_SOURCE_ID "2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Run-Time Library Version Numbers
|
** CAPI3REF: Run-Time Library Version Numbers
|
||||||
|
@ -9,7 +9,7 @@ export SQLITE3_LIB_DIR="$SCRIPT_DIR/sqlite3"
|
|||||||
mkdir -p "$TARGET_DIR" "$SQLITE3_LIB_DIR"
|
mkdir -p "$TARGET_DIR" "$SQLITE3_LIB_DIR"
|
||||||
|
|
||||||
# Download and extract amalgamation
|
# Download and extract amalgamation
|
||||||
SQLITE=sqlite-amalgamation-3470100
|
SQLITE=sqlite-amalgamation-3470200
|
||||||
curl -O https://sqlite.org/2024/$SQLITE.zip
|
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.c" > "$SQLITE3_LIB_DIR/sqlite3.c"
|
||||||
unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.h" > "$SQLITE3_LIB_DIR/sqlite3.h"
|
unzip -p "$SQLITE.zip" "$SQLITE/sqlite3.h" > "$SQLITE3_LIB_DIR/sqlite3.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user