mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-03 12:58:03 +01:00
upgraded bundled sqlite to 3.11.1
This commit is contained in:
parent
9d21ddd8ca
commit
089dd0e2d2
@ -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.11.0. By combining all the individual C code files into this
|
** version 3.11.1. 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
|
||||||
@ -328,9 +328,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.11.0"
|
#define SQLITE_VERSION "3.11.1"
|
||||||
#define SQLITE_VERSION_NUMBER 3011000
|
#define SQLITE_VERSION_NUMBER 3011001
|
||||||
#define SQLITE_SOURCE_ID "2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f"
|
#define SQLITE_SOURCE_ID "2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Run-Time Library Version Numbers
|
** CAPI3REF: Run-Time Library Version Numbers
|
||||||
@ -176167,6 +176167,7 @@ static Fts5Data *fts5DataRead(Fts5Index *p, i64 iRowid){
|
|||||||
return pRet;
|
return pRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Release a reference to data record returned by an earlier call to
|
** Release a reference to data record returned by an earlier call to
|
||||||
** fts5DataRead().
|
** fts5DataRead().
|
||||||
@ -177623,6 +177624,10 @@ static void fts5LeafSeek(
|
|||||||
iPgidx = szLeaf;
|
iPgidx = szLeaf;
|
||||||
iPgidx += fts5GetVarint32(&a[iPgidx], iTermOff);
|
iPgidx += fts5GetVarint32(&a[iPgidx], iTermOff);
|
||||||
iOff = iTermOff;
|
iOff = iTermOff;
|
||||||
|
if( iOff>n ){
|
||||||
|
p->rc = FTS5_CORRUPT;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
while( 1 ){
|
while( 1 ){
|
||||||
|
|
||||||
@ -179968,7 +179973,10 @@ static int sqlite3Fts5IndexOptimize(Fts5Index *p){
|
|||||||
if( pLvl->aSeg ){
|
if( pLvl->aSeg ){
|
||||||
int iLvl, iSeg;
|
int iLvl, iSeg;
|
||||||
int iSegOut = 0;
|
int iSegOut = 0;
|
||||||
for(iLvl=0; iLvl<pStruct->nLevel; iLvl++){
|
/* Iterate through all segments, from oldest to newest. Add them to
|
||||||
|
** the new Fts5Level object so that pLvl->aSeg[0] is the oldest
|
||||||
|
** segment in the data structure. */
|
||||||
|
for(iLvl=pStruct->nLevel-1; iLvl>=0; iLvl--){
|
||||||
for(iSeg=0; iSeg<pStruct->aLevel[iLvl].nSeg; iSeg++){
|
for(iSeg=0; iSeg<pStruct->aLevel[iLvl].nSeg; iSeg++){
|
||||||
pLvl->aSeg[iSegOut] = pStruct->aLevel[iLvl].aSeg[iSeg];
|
pLvl->aSeg[iSegOut] = pStruct->aLevel[iLvl].aSeg[iSeg];
|
||||||
iSegOut++;
|
iSegOut++;
|
||||||
@ -184355,7 +184363,7 @@ static void fts5SourceIdFunc(
|
|||||||
){
|
){
|
||||||
assert( nArg==0 );
|
assert( nArg==0 );
|
||||||
UNUSED_PARAM2(nArg, apUnused);
|
UNUSED_PARAM2(nArg, apUnused);
|
||||||
sqlite3_result_text(pCtx, "fts5: 2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f", -1, SQLITE_TRANSIENT);
|
sqlite3_result_text(pCtx, "fts5: 2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7", -1, SQLITE_TRANSIENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fts5Init(sqlite3 *db){
|
static int fts5Init(sqlite3 *db){
|
||||||
@ -184416,6 +184424,17 @@ static int fts5Init(sqlite3 *db){
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If SQLITE_FTS5_ENABLE_TEST_MI is defined, assume that the file
|
||||||
|
** fts5_test_mi.c is compiled and linked into the executable. And call
|
||||||
|
** its entry point to enable the matchinfo() demo. */
|
||||||
|
#ifdef SQLITE_FTS5_ENABLE_TEST_MI
|
||||||
|
if( rc==SQLITE_OK ){
|
||||||
|
extern int sqlite3Fts5TestRegisterMatchinfo(sqlite3*);
|
||||||
|
rc = sqlite3Fts5TestRegisterMatchinfo(db);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,9 +111,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.11.0"
|
#define SQLITE_VERSION "3.11.1"
|
||||||
#define SQLITE_VERSION_NUMBER 3011000
|
#define SQLITE_VERSION_NUMBER 3011001
|
||||||
#define SQLITE_SOURCE_ID "2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f"
|
#define SQLITE_SOURCE_ID "2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Run-Time Library Version Numbers
|
** CAPI3REF: Run-Time Library Version Numbers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user